UNPKG

@sota1235/parse-link-header-ts

Version:

Parses a link header and returns paging information for each contained link.

11 lines (10 loc) 238 B
interface RawLink { url: string; [key: string]: string; } interface Link extends RawLink { rel: string; } export type Result = Record<string, Link | undefined>; export default function (linkHeader: string): Result; export {};