Skip to content

thanhhoa214/jsonapi-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSONAPI following jsonapi.org documentation

Example usage:

import {
  JsonApiParams,
  JsonApiResponseArray,
  transformParams,
} from 'jsonapi-typescript';

export interface SampleEntity extends Record<string, JsonApiPrimitive> {
  address: string;
  currency: string;
  network: string;
}

export type SampleResponse = JsonApiResponseArray<SampleEntity>;

const params: JsonApiParams = {};
fetch('/', { params });

About

Self-made jsonapi spec for TypeScript following to https://jsonapi.org/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published