Skip to main content Link Search Menu Expand Document (external link)

Transferable overview

Added in v1.0.0


Table of contents


accessors

get

Signature

export declare const get: (u: unknown) => ReadonlyArray<globalThis.Transferable>

Added in v1.0.0

models

Transferable (interface)

Signature

export interface Transferable {
  readonly [symbol]: () => ReadonlyArray<globalThis.Transferable>
}

Added in v1.0.0

predicates

isTransferable

Signature

export declare const isTransferable: (u: unknown) => u is Transferable

Added in v1.0.0

schema

schema

Signature

export declare const schema: {
  <A>(
    f: (_: A) => ReadonlyArray<globalThis.Transferable>
  ): <I>(self: Schema.Schema<I, A>) => Schema.Schema<I, A & Transferable>
  <I, A>(
    self: Schema.Schema<I, A>,
    f: (_: A) => ReadonlyArray<globalThis.Transferable>
  ): Schema.Schema<I, A & Transferable>
}

Added in v1.0.0

schemaFromSelf

Signature

export declare const schemaFromSelf: <I, A>(
  item: Schema.Schema<I, A>
) => Schema.Schema<I & Transferable, A & Transferable>

Added in v1.0.0

symbols

symbol

Signature

export declare const symbol: typeof symbol

Added in v1.0.0