@yantrix/codegen v0.6.0 • Docs
Yantrix API / @yantrix/codegen / IStorageBindingDefinition
Interface: IStorageBindingDefinition ​
See ​
IGenerateStorageBindingsOptions
Properties ​
connector ​
ts
connector: IStorageModuleExport & object;Type declaration ​
snapshotTypeArgument? ​
ts
optional snapshotTypeArgument: boolean;Pass the mapper's projected snapshot type to a generic connector factory.
Example ​
ts
`{ module: "./storage/memory.js", exportName: "connect" }`mapper ​
ts
mapper: IStorageModuleExport;Example ​
ts
`{ module: "./preferences.js", exportName: "preferencesMapper" }`name ​
ts
name: string;Example ​
ts
`"user-preferences"`