Deno.StaticForeignSymbol

Infers a foreign symbol

type StaticForeignSymbol<T extends ForeignFunction | ForeignStatic> = T extends ForeignFunction ? (...args: StaticForeignFunctionParameters<T["parameters"]>) => ConditionalAsync<T["nonblocking"], StaticForeignFunctionResult<T["result"]>> : T extends ForeignStatic ? StaticForeignFunctionResult<T["type"]> : never;

§Type Parameters

§Type

§
T extends ForeignFunction ? (...args: StaticForeignFunctionParameters<T["parameters"]>) => ConditionalAsync<T["nonblocking"], StaticForeignFunctionResult<T["result"]>> : T extends ForeignStatic ? StaticForeignFunctionResult<T["type"]> : never
[src]