Deno.ForeignStatic

UNSTABLE: New API, yet to be vetted.

interface ForeignStatic <Type extends NativeType = NativeType> {
name?: string;
optional?: boolean;
type: Type;
}

§Type Parameters

§Properties

§
name?: string
[src]

Name of the symbol, defaults to the key name in symbols object.

§
optional?: boolean
[src]

When true, dlopen will not fail if the symbol is not found. Instead, the symbol will be set to null.

§
type: Type
[src]

The type of the foreign static value.