Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions docs/api/perry.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Auto-generated from Perry's API manifest (#465). Do not edit by hand.
// Source: perry-api-manifest::API_MANIFEST
// Coverage: 2059 entries across 134 modules
// Coverage: 2065 entries across 135 modules

type PerryI8 = number & { readonly __perryI8?: never };
type PerryI16 = number & { readonly __perryI16?: never };
Expand Down Expand Up @@ -370,26 +370,26 @@ declare module "bun:ffi" {
/** stdlib */
export const FFIType: any;
/** stdlib */
export const read: any;
/** stdlib */
export const suffix: any;
/** stdlib @perryStub stage 3 — not yet implemented, throws at runtime (#6562) */
/** stdlib */
export function CFunction(...args: any[]): any;
/** stdlib */
export function CString(...args: any[]): any;
/** stdlib */
export function JSCallback(...args: any[]): any;
/** stdlib */
export function dlopen(...args: any[]): any;
/** stdlib @perryStub stage ≥2 — not yet implemented, throws at runtime (#6562) */
/** stdlib */
export function linkSymbols(...args: any[]): any;
/** stdlib */
export function ptr(...args: any[]): any;
/** stdlib @perryStub stage ≥2 — not yet implemented, throws at runtime (#6562) */
export function read(...args: any[]): any;
/** stdlib */
export function toArrayBuffer(...args: any[]): any;
/** stdlib */
export function toBuffer(...args: any[]): any;
/** stdlib @perryStub stage ≥2 — not yet implemented, throws at runtime (#6562) */
/** stdlib */
export function viewSource(...args: any[]): any;
}

Expand Down Expand Up @@ -1585,6 +1585,21 @@ declare module "fetch" {
export default function (...args: any[]): any;
}

declare module "ffi" {
/** stdlib */
export const suffix: any;
/** stdlib */
export function dlopen(...args: any[]): any;
/** stdlib */
export function getRawPointer(...args: any[]): any;
/** stdlib */
export function toArrayBuffer(...args: any[]): any;
/** stdlib */
export function toBuffer(...args: any[]): any;
/** stdlib */
export function toString(...args: any[]): any;
}

declare module "fs" {
/** stdlib */
export class Dir { [key: string]: any; }
Expand Down
25 changes: 20 additions & 5 deletions docs/src/api/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This page is auto-generated from Perry's compile-time API manifest (`perry-api-manifest::API_MANIFEST`). It is the source of truth for what `perry compile` accepts; references to symbols not listed here produce `R005 UnimplementedApi` (issue #463). Stubs (#464) are flagged ⚠ — they link cleanly but no-op at runtime on the chosen target.

Total: 3009 entries across 136 modules.
Total: 3015 entries across 137 modules.

## Modules

Expand Down Expand Up @@ -52,6 +52,7 @@ Total: 3009 entries across 136 modules.
- [`exponential-backoff`](#exponential-backoff)
- [`fastify`](#fastify)
- [`fetch`](#fetch)
- [`ffi`](#ffi)
- [`fs`](#fs)
- [`fs/promises`](#fspromises)
- [`http`](#http)
Expand Down Expand Up @@ -437,20 +438,20 @@ Total: 3009 entries across 136 modules.

### Methods

- `CFunction` — module ⚠ **stub** — stage 3 — not yet implemented, throws at runtime (#6562)
- `CFunction` — module
- `CString` — module
- `JSCallback` — module
- `dlopen` — module
- `linkSymbols` — module ⚠ **stub** — stage ≥2 — not yet implemented, throws at runtime (#6562)
- `linkSymbols` — module
- `ptr` — module
- `read` — module ⚠ **stub** — stage ≥2 — not yet implemented, throws at runtime (#6562)
- `toArrayBuffer` — module
- `toBuffer` — module
- `viewSource` — module ⚠ **stub** — stage ≥2 — not yet implemented, throws at runtime (#6562)
- `viewSource` — module

### Properties

- `FFIType`
- `read`
- `suffix`

## `bun:sqlite`
Expand Down Expand Up @@ -1426,6 +1427,20 @@ Total: 3009 entries across 136 modules.

- `default` — module

## `ffi`

### Methods

- `dlopen` — module
- `getRawPointer` — module
- `toArrayBuffer` — module
- `toBuffer` — module
- `toString` — module

### Properties

- `suffix`

## `fs`

### Classes
Expand Down
Loading