UNPKG

rechtspraak-nl

Version:

Utility functions for consuming Rechtspraak.nl open data for Dutch court judgments and generating well-formed linked data

14 lines (13 loc) 655 B
import { StandardResourceObject } from "./standard-resource-object"; import { aanlegTypes, gevolgTypes, relationTypes } from "../json-ld/context"; export declare type Aanleg = keyof typeof aanlegTypes; export declare function isAanleg(x: string): x is Aanleg; export declare type Gevolg = keyof typeof gevolgTypes; export declare function isGevolg(x: string): x is Gevolg; export interface Relation extends StandardResourceObject { "gevolg"?: Gevolg; "aanleg": Aanleg; "type": RelationType; } export declare type RelationType = keyof typeof relationTypes; export declare const getRelation: (arr: any[]) => Relation[] | undefined;