You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raises an error for each of the two classes during Typescript Compilation:
user@host someFolder % npm run build
> appwrite-function@1.0.0 build
> npx tsc
src/index.ts:1:14 - error TS2305: Module '"node-appwrite"' has no exported member 'Permission'.
1 import sdk, {Permission, Role} from 'node-appwrite';
~~~~~~~~~~
src/index.ts:1:26 - error TS2305: Module '"node-appwrite"' has no exported member 'Role'.
1 import sdk, {Permission, Role} from 'node-appwrite';
~~~~
Found 2 errors in the same file, starting at: src/index.ts:1
The error does not appear, when manually adding these Lines into the index.d.ts file after line 1719 (into the root namespace of the node-appwritemodule):
馃憻 Reproduction steps
Installing the Node SDK, importing the
Permission
and/orRole
class and compiling with tsc.Import Statement
package.json
馃憤 Expected behavior
Import the classes.
馃憥 Actual Behavior
Raises an error for each of the two classes during Typescript Compilation:
The error does not appear, when manually adding these Lines into the
index.d.ts
file after line 1719 (into the root namespace of thenode-appwrite
module):馃幉 Appwrite version
Different version (specify in environment)
馃捇 Operating system
Linux
馃П Your Environment
Appwrite Version: 1.0.1
node-appwrite Version: ^8.0.0
tsc Version: 4.8.3
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: