prorm API Reference
    Preparing search index...

    Type Alias CodeSource

    CodeSource:
        | string
        | URL
        | Uint8Array
        | { text(): Promise<string>; name?: string }
        | { path: string }

    Something a routine body can be read from.

    • string — a filesystem path, resolved against the working directory.
    • URL — a file: URL. Others are rejected, because fetching a function body over the network at schema-build time is not something to do by accident.
    • Buffer / Uint8Array — bytes already in hand.
    • Blob / File — the browser's file objects.
    • { path } — anything carrying a path, which covers most file wrappers.