UNPKG

@dpkit/core

Version:

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

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