@xyo-network/module-model
Advanced tools
Comparing version 3.0.11 to 3.0.12
@@ -7,3 +7,3 @@ import type { Address } from '@xylabs/hex'; | ||
export type CreatableModuleFactory<T extends AttachableModuleInstance | void = void> = Omit<CreatableModule<T extends AttachableModuleInstance ? T : AttachableModuleInstance>, 'new' | 'create'> & { | ||
create<T extends AttachableModuleInstance>(this: CreatableModuleFactory<T>, params?: T['params']): Promise<T>; | ||
create<T extends AttachableModuleInstance>(this: CreatableModuleFactory<T>, params: T['params']): Promise<T>; | ||
}; | ||
@@ -16,4 +16,4 @@ export interface CreatableModule<T extends AttachableModuleInstance = AttachableModuleInstance> { | ||
_noOverride(functionName: string): void; | ||
create<T extends AttachableModuleInstance>(this: CreatableModule<T>, params?: T['params']): Promise<T>; | ||
factory<T extends AttachableModuleInstance>(this: CreatableModule<T>, params?: T['params']): CreatableModuleFactory<T>; | ||
create<T extends AttachableModuleInstance>(this: CreatableModule<T>, params: T['params']): Promise<T>; | ||
factory<T extends AttachableModuleInstance>(this: CreatableModule<T>, params: T['params']): CreatableModuleFactory<T>; | ||
} | ||
@@ -20,0 +20,0 @@ export declare function creatableModule<TModule extends AttachableModuleInstance = AttachableModuleInstance>(): <U extends CreatableModule<TModule>>(constructor: U) => void; |
{ | ||
"name": "@xyo-network/module-model", | ||
"version": "3.0.11", | ||
"version": "3.0.12", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
@@ -40,7 +40,7 @@ "homepage": "https://xyo.network", | ||
"@xylabs/retry": "^4.0.5", | ||
"@xyo-network/account-model": "^3.0.11", | ||
"@xyo-network/boundwitness-model": "^3.0.11", | ||
"@xyo-network/manifest-model": "^3.0.11", | ||
"@xyo-network/module-events": "^3.0.11", | ||
"@xyo-network/payload-model": "^3.0.11" | ||
"@xyo-network/account-model": "^3.0.12", | ||
"@xyo-network/boundwitness-model": "^3.0.12", | ||
"@xyo-network/manifest-model": "^3.0.12", | ||
"@xyo-network/module-events": "^3.0.12", | ||
"@xyo-network/payload-model": "^3.0.12" | ||
}, | ||
@@ -47,0 +47,0 @@ "devDependencies": { |
@@ -12,3 +12,3 @@ import type { Address } from '@xylabs/hex' | ||
> & { | ||
create<T extends AttachableModuleInstance>(this: CreatableModuleFactory<T>, params?: T['params']): Promise<T> | ||
create<T extends AttachableModuleInstance>(this: CreatableModuleFactory<T>, params: T['params']): Promise<T> | ||
} | ||
@@ -22,4 +22,4 @@ | ||
_noOverride(functionName: string): void | ||
create<T extends AttachableModuleInstance>(this: CreatableModule<T>, params?: T['params']): Promise<T> | ||
factory<T extends AttachableModuleInstance>(this: CreatableModule<T>, params?: T['params']): CreatableModuleFactory<T> | ||
create<T extends AttachableModuleInstance>(this: CreatableModule<T>, params: T['params']): Promise<T> | ||
factory<T extends AttachableModuleInstance>(this: CreatableModule<T>, params: T['params']): CreatableModuleFactory<T> | ||
} | ||
@@ -26,0 +26,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
303905