API reference / @jsprismarine/script-host / shape/history
shape/history
Interfaces
DeclarationShape
Defined in: script-host/src/shape/history.ts:6
One declaration as a single version has it.
Properties
declaration
readonlydeclaration:ShapeDeclaration
Defined in: script-host/src/shape/history.ts:8
members
readonlymembers:ReadonlyMap<string,ShapeMember>
Defined in: script-host/src/shape/history.ts:9
name
readonlyname:string
Defined in: script-host/src/shape/history.ts:7
ModuleShape
Defined in: script-host/src/shape/history.ts:13
The API one version of one module serves: its declarations by name, in the history's order.
Properties
declarations
readonlydeclarations:ReadonlyMap<string,DeclarationShape>
Defined in: script-host/src/shape/history.ts:16
module
readonlymodule:string
Defined in: script-host/src/shape/history.ts:14
version
readonlyversion:ModuleVersion
Defined in: script-host/src/shape/history.ts:15
Functions
exportNames()
exportNames(
shape):string[]
Defined in: script-host/src/shape/history.ts:79
The names a script's import * as module sees: every declaration but the interfaces, which have no value at run time.
Parameters
shape
Returns
string[]
shapeAt()
shapeAt(
history,version):ModuleShape
Defined in: script-host/src/shape/history.ts:54
Builds the API one version of a module serves from the module's history.
Parameters
history
version
string
Returns
Throws
When the history has no such version.