Skip to content

🐛 Bug Report: target vs targets #5

@theemaster

Description

@theemaster

👟 Reproduction steps

In main.js shouldn't line 60:

.join(target.fallback ?? target.default ?? '')

be targets instead of target?

I tried to create types because I am using TypeScript in my appwrite functions. My type definitions where:

interface TargetPrefs {
  appName?: string;
  appPath?: string;
  appPackage?: string;
  fallback?: string;
}

interface Targets {
  [platform: string]: string | TargetPrefs;
}

interface PathConfig {
  path: string;
  targets: Targets;
}

👍 Expected behavior

The platform definitions in the CONFIG examples do not contain an example where a target/platform contains a default property.

👎 Actual Behavior

Only targets have a property default which might be accessible.

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

appwrite 1.4.3

nodeJS using TypeScript

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions