import { JsonapiResponseDoc } from "../jsonapi-spec" ; import { IResultProxy } from "./index" ; export class NullProxy implements IResultProxy < null > { private _raw_json : JsonapiResponseDoc ; constructor ( raw_json ) { this . _raw_json = raw_json ; } get raw ( ) : JsonapiResponseDoc { return this . _raw_json ; } get data ( ) { return null ; } get meta ( ) : Record < string , any > { return this . raw . meta || { } ; } }