UNPKG

@jeswr/prefixcc

Version:

A utility library to lookup prefixes and uris on prefixcc

10 lines (9 loc) 395 B
import { OptionalFetch } from './fetchContext'; /** * Use prefix.cc to look up the prefix for a URI namespace, rejects if there is an error in * looking up the prefix, or if no prefixes are returned * * @param uri The URI to obtain a prefix for * @param options Optional fetch function to use */ export declare function lookupPrefix(uri: string, options?: OptionalFetch): Promise<string>;