UNPKG

@dpkit/core

Version:

Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames

15 lines (11 loc) 304 B
import { loadSchema } from "../schema/index.ts" import type { Resource } from "./Resource.ts" export async function loadResourceSchema(schema: Resource["schema"]) { if (!schema) { return undefined } if (typeof schema !== "string") { return schema } return await loadSchema(schema) }