Skip to content

Commit

Permalink
doc: fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Jul 12, 2024
1 parent 96e2043 commit 8be31c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/call-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export type CallState = {

export class CallContext {
#stack: [number | null, number | null, number | null][];
/** @hidden */
#blocks: (Block | null)[] = [];
#logger: Console;
#decoder: TextDecoder;
Expand Down
10 changes: 5 additions & 5 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ export interface Manifest {
/**
* Any type that can be converted into an Extism {@link Manifest}.
* - `object` instances that implement {@link Manifest} are validated.
* - `ArrayBuffer` instances are converted into {@link Manifest}s with a single {@link ManifestUint8Array} member.
* - `ArrayBuffer` instances are converted into {@link Manifest}s with a single {@link ManifestWasmData} member.
* - `URL` instances are fetched and their responses interpreted according to their `content-type` response header. `application/wasm` and `application/octet-stream` items
* are treated as {@link ManifestUint8Array} items; `application/json` and `text/json` are treated as JSON-encoded {@link Manifest}s.
* are treated as {@link ManifestWasmData} items; `application/json` and `text/json` are treated as JSON-encoded {@link Manifest}s.
* - `string` instances that start with `http://`, `https://`, or `file://` are treated as URLs.
* - `string` instances that start with `{` treated as JSON-encoded {@link Manifest}s.
* - All other `string` instances are treated as {@link ManifestWasmPath}.
Expand All @@ -365,10 +365,10 @@ export interface Manifest {
* let manifest = new ArrayBuffer()
* ```
*
* @see [Extism](https://extism.org/) > [Concepts](https://extism.org/docs/category/concepts) > [Manifest](https://extism.org/docs/concepts/manifest)
* @throws [TypeError](https://mdn.io/TypeError) when `URL` parameters don't resolve to a known `content-type`
* @throws [TypeError](https://mdn.io/TypeError) when the resulting {@link Manifest} does not contain a `wasm` member with valid {@link ManifestWasm} items.
*
* @throws {@link TypeError} when `URL` parameters don't resolve to a known `content-type`
* @throws {@link TypeError} when the resulting {@link Manifest} does not contain a `wasm` member with valid {@link ManifestWasm} items.
* @see [Extism](https://extism.org/) > [Concepts](https://extism.org/docs/category/concepts) > [Manifest](https://extism.org/docs/concepts/manifest)
*/
export type ManifestLike = Manifest | Response | WebAssembly.Module | ArrayBuffer | string | URL;

Expand Down
1 change: 1 addition & 0 deletions src/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type {
ManifestWasmPath,
ManifestWasm,
Manifest,
MemoryOptions,
Plugin,
PluginConfig,
PluginConfigLike,
Expand Down

0 comments on commit 8be31c1

Please sign in to comment.