1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

docs: add categories to APIs without (#18826)

This commit is contained in:
Leo Kettmeir 2023-04-24 22:24:18 +02:00 committed by GitHub
parent ebfc75fe8c
commit be9e3c430f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,6 +97,8 @@ declare namespace Deno {
/** **UNSTABLE**: New API, yet to be vetted.
*
* The native struct type for interfacing with foreign functions.
*
* @category FFI
*/
type NativeStructType = { readonly struct: readonly NativeType[] };
@ -351,7 +353,9 @@ declare namespace Deno {
: StaticForeignSymbol<T[K]>;
};
/** @category FFI */
const brand: unique symbol;
/** @category FFI */
type PointerObject = { [brand]: unknown };
/** **UNSTABLE**: New API, yet to be vetted.
@ -643,8 +647,11 @@ declare namespace Deno {
/**
* This magic code used to implement better type hints for {@linkcode Deno.dlopen}
*
* @category FFI
*/
type Cast<A, B> = A extends B ? A : B;
/** @category FFI */
type Const<T> = Cast<
T,
| (T extends string | number | bigint | boolean ? T : never)
@ -1770,6 +1777,7 @@ declare namespace Deno {
batchSize?: number;
}
/** @category KV */
export interface KvCommitResult {
/** The versionstamp of the value committed to KV. */
versionstamp: string;