@perspect3vism/ad4m / Exports / SmartLiteral
Class: SmartLiteral
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new SmartLiteral(perspective
, base
)
Parameters
Name | Type |
---|---|
perspective | PerspectiveProxy |
base | string |
Defined in
SmartLiteral.ts:23 (opens in a new tab)
Properties
#base
• Private
#base: string
Defined in
SmartLiteral.ts:21 (opens in a new tab)
#perspective
• Private
#perspective: PerspectiveProxy
Defined in
SmartLiteral.ts:20 (opens in a new tab)
Accessors
base
• get
base(): string
Returns
string
Defined in
SmartLiteral.ts:28 (opens in a new tab)
Methods
get
▸ get(): Promise
<any
>
Returns
Promise
<any
>
Defined in
SmartLiteral.ts:54 (opens in a new tab)
set
▸ set(content
): Promise
<void
>
Parameters
Name | Type |
---|---|
content | any |
Returns
Promise
<void
>
Defined in
SmartLiteral.ts:67 (opens in a new tab)
create
▸ Static
create(perspective
, literal
): Promise
<SmartLiteral
>
Parameters
Name | Type |
---|---|
perspective | PerspectiveProxy |
literal | any |
Returns
Promise
<SmartLiteral
>
Defined in
SmartLiteral.ts:32 (opens in a new tab)
getAllSmartLiterals
▸ Static
getAllSmartLiterals(perspective
): Promise
<SmartLiteral
[]>
Parameters
Name | Type |
---|---|
perspective | PerspectiveProxy |
Returns
Promise
<SmartLiteral
[]>
Defined in
SmartLiteral.ts:47 (opens in a new tab)
isSmartLiteralBase
▸ Static
isSmartLiteralBase(perspective
, base
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
perspective | PerspectiveProxy |
base | string |
Returns
Promise
<boolean
>