Skip to content

nulib/dcapi-types

Repository files navigation

@nulib/dcapi-types

Typescript NPM package for Northwestern University Libraries Digital Collections API.

Northwestern University Libraries

Installation

npm install @nulib/dcapi-types

Usage

import { type Work } from "@nulib/dcapi-types";

...

const work = await apiGetRequest<Work>(id);

Publishing/Updating Types

Types are generated by: Digital Collections API and PR'd into the main branch when the API is versioned. The staging branch tracks changes to the private staging DC API for development purposes only.