Endo API documentation - v0.2.0 / Exports / @endo/bundle-source
Module: @endo/bundle-source
Table of contents
Interfaces
Type Aliases
Functions
Type Aliases
BundleSource
Ƭ BundleSource: BundleSourceSimple
& BundleSourceWithFormat
& BundleSourceWithOptions
& BundleSourceGeneral
Defined in
BundleSourceResult
Ƭ BundleSourceResult<T
>: T
extends "endoZipBase64"
? { endoZipBase64
: string
; endoZipBase64Sha512
: string
; moduleFormat
: "endoZipBase64"
} : T
extends "getExport"
| "nestedEvaluate"
? { moduleFormat
: T
; source
: string
; sourceMap
: string
} : never
Type parameters
Name | Type |
---|---|
T | extends ModuleFormat |
Defined in
CanonicalFn
Ƭ CanonicalFn: (location
: string
) => Promise
<string
>
Type declaration
▸ (location
): Promise
<string
>
Parameters
Name | Type |
---|---|
location | string |
Returns
Promise
<string
>
Defined in
ModuleFormat
Ƭ ModuleFormat: "endoZipBase64"
| "nestedEvaluate"
| "getExport"
Defined in
ReadFn
Ƭ ReadFn: (location
: string
) => Promise
<Uint8Array
>
Type declaration
▸ (location
): Promise
<Uint8Array
>
Parameters
Name | Type |
---|---|
location | string |
Returns
Promise
<Uint8Array
>
Defined in
Functions
default
▸ default<T
>(startFilename
): Promise
<BundleSourceResult
<T
>>
Type parameters
Name | Type |
---|---|
T | extends "endoZipBase64" |
Parameters
Name | Type |
---|---|
startFilename | string |
Returns
Promise
<BundleSourceResult
<T
>>
Defined in
▸ default<T
>(startFilename
, format
, powers?
): Promise
<BundleSourceResult
<T
>>
Type parameters
Name | Type |
---|---|
T | extends ModuleFormat = "endoZipBase64" |
Parameters
Name | Type |
---|---|
startFilename | string |
format | T |
powers? | Object |
powers.canonical? | CanonicalFn |
powers.externals? | string [] |
powers.read? | ReadFn |
Returns
Promise
<BundleSourceResult
<T
>>
Defined in
▸ default<T
>(startFilename
, bundleOptions
, powers?
): Promise
<BundleSourceResult
<T
>>
Type parameters
Name | Type |
---|---|
T | extends ModuleFormat = "endoZipBase64" |
Parameters
Name | Type |
---|---|
startFilename | string |
bundleOptions | BundleOptions <T > |
powers? | Object |
powers.canonical? | CanonicalFn |
powers.externals? | string [] |
powers.read? | ReadFn |
Returns
Promise
<BundleSourceResult
<T
>>
Defined in
▸ default<T
>(startFilename
, formatOrOptions?
, powers?
): Promise
<BundleSourceResult
<T
>>
Type parameters
Name | Type |
---|---|
T | extends ModuleFormat = "endoZipBase64" |
Parameters
Name | Type |
---|---|
startFilename | string |
formatOrOptions? | T | BundleOptions <T > |
powers? | Object |
powers.canonical? | CanonicalFn |
powers.externals? | string [] |
powers.read? | ReadFn |
Returns
Promise
<BundleSourceResult
<T
>>