tsc
instance.ts(2,24): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
instance.ts(8,23): error TS2503: Cannot find namespace 'SDK'.
instance.ts(8,44): error TS2503: Cannot find namespace 'SDK'.
instance.ts(21,39): error TS2304: Cannot find name 'EditorPropertyValueType'.
plugin.ts(2,24): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
plugin.ts(25,33): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
plugin.ts(26,40): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
plugin.ts(29,36): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
type.ts(2,24): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
type.ts(8,25): error TS2503: Cannot find namespace 'SDK'.
type.ts(8,55): error TS2503: Cannot find namespace 'SDK'.
ELIFECYCLE Command failed with exit code 2.
---
I read the type definition files and I wasn't able to find a SDK
namespace.
I discovered -in fact- a C3
namespace (defined in the ts-defs/runtime/AddonSDK.d.ts
file), used within some files like c3runtime/actions.ts
, c3runtime/conditions.ts
, c3runtime/expressions.ts
and so on... But no SDK
.
I also searched for some of the classes mentioned and used within the 3 files that throw errors like SDK.IInstanceBase
or SDK.IPluginBase
but I wasn't able to find those either.
Instead, I discovered some similar classes: ISDKInstanceBase
& ISDKPluginBase
; but then I realized that they are already used in the c3runtime/instance.ts
and c3runtime/plugin.ts
files.
I also couldn't find any similar reference to EditorPropertyValueType
used in the instance.ts
file on line 21.
---
Of course I know I'm doing something wrong but I can't figure out what is it.
What's the problem? What am I doing wrong?
Thanks.