Comparing version 1.4.0 to 1.4.1
@@ -1,2 +0,2 @@ | ||
import { Codec, Decoder, Encoder, StringRecord } from "../types"; | ||
import { Codec, CodecType, Decoder, DecoderType, Encoder, EncoderType, StringRecord } from "../types"; | ||
declare type Tuple<T, N extends number> = readonly [T, ...T[]] & { | ||
@@ -11,24 +11,15 @@ length: N; | ||
export declare const Enum: { | ||
<O extends StringRecord<Codec<any>>, OT extends { [K in keyof O]: O[K] extends Codec<infer D> ? D extends undefined ? { | ||
<O extends StringRecord<Codec<any>>>(inner: O, indexes?: RestrictedLenTuple<number, O> | undefined): Codec<{ [K in keyof O]: { | ||
tag: K; | ||
value?: undefined; | ||
} : { | ||
tag: K; | ||
value: D; | ||
} : unknown; }>(inner: O, indexes?: RestrictedLenTuple<number, O> | undefined): Codec<OT[keyof O]>; | ||
enc: <O_1 extends StringRecord<Encoder<any>>, OT_1 extends { [K_1 in keyof O_1]: O_1[K_1] extends Encoder<infer D_1> ? D_1 extends undefined ? { | ||
value: CodecType<O[K]>; | ||
}; }[keyof O]>; | ||
enc: <O_1 extends StringRecord<Encoder<any>>>(inner: O_1, x?: RestrictedLenTuple<number, O_1> | undefined) => Encoder<{ [K_1 in keyof O_1]: { | ||
tag: K_1; | ||
value?: undefined; | ||
} : { | ||
tag: K_1; | ||
value: D_1; | ||
} : unknown; }>(inner: O_1, x?: RestrictedLenTuple<number, O_1> | undefined) => Encoder<OT_1[keyof O_1]>; | ||
dec: <O_2 extends StringRecord<Decoder<any>>, OT_2 extends { [K_2 in keyof O_2]: O_2[K_2] extends Decoder<infer D_2> ? D_2 extends undefined ? { | ||
value: EncoderType<O_1[K_1]>; | ||
}; }[keyof O_1]>; | ||
dec: <O_2 extends StringRecord<Decoder<any>>>(inner: O_2, x?: RestrictedLenTuple<number, O_2> | undefined) => Decoder<{ [K_2 in keyof O_2]: { | ||
tag: K_2; | ||
value?: undefined; | ||
} : { | ||
tag: K_2; | ||
value: D_2; | ||
} : unknown; }>(inner: O_2, x?: RestrictedLenTuple<number, O_2> | undefined) => Decoder<OT_2[keyof O_2]>; | ||
value: DecoderType<O_2[K_2]>; | ||
}; }[keyof O_2]>; | ||
}; | ||
export {}; |
@@ -1,6 +0,6 @@ | ||
import { Codec, Decoder, Encoder, StringRecord } from "../types"; | ||
import { Codec, EncoderType, DecoderType, CodecType, Decoder, Encoder, StringRecord } from "../types"; | ||
export declare const Struct: { | ||
<A extends StringRecord<Codec<any>>, OT extends { [K in keyof A]: A[K] extends Codec<infer D> ? D : unknown; }>(codecs: A): Codec<OT>; | ||
enc: <A_1 extends StringRecord<Encoder<any>>, OT_1 extends { [K_1 in keyof A_1]: A_1[K_1] extends Encoder<infer D_1> ? D_1 : unknown; }>(encoders: A_1) => Encoder<OT_1>; | ||
dec: <A_2 extends StringRecord<Decoder<any>>, OT_2 extends { [K_2 in keyof A_2]: A_2[K_2] extends Decoder<infer D_2> ? D_2 : unknown; }>(decoders: A_2) => Decoder<OT_2>; | ||
<A extends StringRecord<Codec<any>>>(codecs: A): Codec<{ [K in keyof A]: CodecType<A[K]>; }>; | ||
enc: <A_1 extends StringRecord<Encoder<any>>>(encoders: A_1) => Encoder<{ [K_1 in keyof A_1]: EncoderType<A_1[K_1]>; }>; | ||
dec: <A_2 extends StringRecord<Decoder<any>>>(decoders: A_2) => Decoder<{ [K_2 in keyof A_2]: DecoderType<A_2[K_2]>; }>; | ||
}; |
import { Codec, Decoder, Encoder } from "../types"; | ||
export declare const Tuple: { | ||
<A extends Codec<any>[], OT extends { [K in keyof A]: A[K] extends Codec<infer D> ? D : unknown; }>(...codecs: A): Codec<[...OT]>; | ||
enc: <A_1 extends Encoder<any>[], OT_1 extends { [K_1 in keyof A_1]: A_1[K_1] extends Encoder<infer D_1> ? D_1 : unknown; }>(...encoders: A_1) => Encoder<[...OT_1]>; | ||
dec: <A_2 extends Decoder<any>[], OT_2 extends { [K_2 in keyof A_2]: A_2[K_2] extends Decoder<infer D_2> ? D_2 : unknown; }>(...decoders: A_2) => Decoder<[...OT_2]>; | ||
<A extends Codec<any>[]>(...codecs: A): Codec<{ [K in keyof A]: A[K] extends Codec<infer D> ? D : unknown; }>; | ||
enc: <A_1 extends Encoder<any>[]>(...encoders: A_1) => Encoder<{ [K_1 in keyof A_1]: A_1[K_1] extends Encoder<infer D_1> ? D_1 : unknown; }>; | ||
dec: <A_2 extends Decoder<any>[]>(...decoders: A_2) => Decoder<{ [K_2 in keyof A_2]: A_2[K_2] extends Decoder<infer D_2> ? D_2 : unknown; }>; | ||
}; |
@@ -1,2 +0,2 @@ | ||
var T=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var te=Object.prototype.hasOwnProperty;var re=(n,e,t)=>e in n?T(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var oe=(n,e)=>{for(var t in e)T(n,t,{get:e[t],enumerable:!0})},ce=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ne(e))!te.call(n,r)&&r!==t&&T(n,r,{get:()=>e[r],enumerable:!(o=ee(e,r))||o.enumerable});return n};var ie=n=>ce(T({},"__esModule",{value:!0}),n);var v=(n,e,t)=>(re(n,typeof e!="symbol"?e+"":e,t),t);var Le={};oe(Le,{Bytes:()=>U,Enum:()=>b,Option:()=>C,Result:()=>k,Struct:()=>w,Tuple:()=>y,Vector:()=>B,_void:()=>N,bool:()=>D,compact:()=>m,createCodec:()=>i,createDecoder:()=>se,enhanceCodec:()=>V,enhanceDecoder:()=>A,enhanceEncoder:()=>E,i128:()=>ge,i16:()=>fe,i256:()=>De,i32:()=>pe,i64:()=>ye,i8:()=>me,str:()=>j,u128:()=>le,u16:()=>g,u256:()=>Oe,u32:()=>O,u64:()=>K,u8:()=>u});module.exports=ie(Le);var R={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15};function de(n){let e=n.length%2,t=(n[1]==="x"?2:0)+e,o=(n.length-t)/2+e,r=new Uint8Array(o);e&&(r[0]=0|R[n[2]]);for(let c=0;c<o;){let d=t+c*2,f=R[n[d]],x=R[n[d+1]];r[e+c++]=f<<4|x}return r}var I=class extends Uint8Array{constructor(t){super(t);v(this,"i",0);v(this,"v");this.v=new DataView(t)}},s=n=>e=>n(e instanceof I?e:new I(e instanceof Uint8Array?e.buffer:typeof e=="string"?de(e).buffer:e));var a=(...n)=>{let e=n.length,t=0;for(let r=0;r<e;r++)t+=n[r].byteLength;let o=new Uint8Array(t);for(let r=0,c=0;r<e;r++){let d=n[r];o.set(d,c),c+=d.byteLength}return o};function l(n,e){let t=Object.keys(n),o=t.length,r={};for(let c=0;c<o;c++){let d=t[c];r[d]=e(n[d],d)}return r}var se=s,i=(n,e)=>{let t=[n,e];return t.enc=n,t.dec=e,t},E=(n,e)=>t=>n(e(t)),A=(n,e)=>t=>e(n(t)),V=([n,e],t,o)=>i(E(n,t),A(e,o));function ae(n,e){return s(t=>{let o=t.v[e](t.i,!0);return t.i+=n,o})}function ue(n,e){return t=>{let o=new Uint8Array(n);return new DataView(o.buffer)[e](0,t,!0),o}}function p(n,e,t){return i(ue(n,t),ae(n,e))}var u=p(1,"getUint8","setUint8"),g=p(2,"getUint16","setUint16"),O=p(4,"getUint32","setUint32"),K=p(8,"getBigUint64","setBigUint64"),me=p(1,"getInt8","setInt8"),fe=p(2,"getInt16","setInt16"),pe=p(4,"getInt32","setInt32"),ye=p(8,"getBigInt64","setBigInt64"),h=n=>{let e=new Uint8Array(16),t=new DataView(e.buffer);return t.setBigInt64(0,n,!0),t.setBigInt64(8,n>>64n,!0),e},L=n=>s(e=>{let{v:t,i:o}=e,r=t.getBigUint64(o,!0),c=t[n](o+8,!0);return e.i+=16,c<<64n|r}),le=i(h,L("getBigUint64")),ge=i(h,L("getBigInt64")),_=n=>{let e=new Uint8Array(32),t=new DataView(e.buffer);return t.setBigInt64(0,n,!0),t.setBigInt64(8,n>>64n,!0),t.setBigInt64(16,n>>128n,!0),t.setBigInt64(24,n>>192n,!0),e},M=n=>s(e=>{let t=e.v.getBigUint64(e.i,!0);return e.i+=8,t|=e.v.getBigUint64(e.i,!0)<<64n,e.i+=8,t|=e.v.getBigUint64(e.i,!0)<<128n,e.i+=8,t|=e.v[n](e.i,!0)<<192n,e.i+=8,t}),Oe=i(_,M("getBigUint64")),De=i(_,M("getBigInt64"));var D=V(u,n=>n?1:0,Boolean);var xe=[u[1],g[1],O[1]],Te=s(n=>{let e=n[n.i],t=e&3;if(t<3)return xe[t](n)>>>2;let o=(e>>>2)+4;n.i++;let r=0n,c=o/8|0,d=0n;for(let x=0;x<c;x++)r=K[1](n)<<d|r,d+=64n;let f=o%8;return f>3&&(r=BigInt(O[1](n))<<d|r,d+=32n,f-=4),f>1&&(r=BigInt(g[1](n))<<d|r,d+=16n,f-=2),f&&(r=BigInt(u[1](n))<<d|r),r}),Ie=1n<<56n,Ee=1<<24,Ae=256,Ke=4294967295n,Ue=1<<6,be=1<<14,Ce=1<<30,ke=n=>{if(n<0)throw new Error(`Wrong compact input (${n})`);let e=Number(n)<<2;if(n<Ue)return u[0](e);if(n<be)return g[0](e|1);if(n<Ce)return O[0](e|2);let t=[new Uint8Array(1)],o=BigInt(n);for(;o>=Ie;)t.push(K[0](o)),o>>=64n;o>=Ee&&(t.push(O[0](Number(o&Ke))),o>>=32n);let r=Number(o);r>=Ae&&(t.push(g[0](r)),r>>=16),r&&t.push(u[0](r));let c=a(...t);return c[0]=c.length-5<<2|3,c},m=i(ke,Te);var we=new TextEncoder,Be=n=>{let e=we.encode(n);return a(m.enc(e.length),e)},ve=new TextDecoder,Re=s(n=>{let e=m.dec(n),t=new DataView(n.buffer,n.i,e);return n.i+=e,ve.decode(t)}),j=i(Be,Re);var Ve=()=>{},he=new Uint8Array(0),N=i(()=>he,Ve);var S=n=>n===void 0?e=>a(m.enc(e.length),e):e=>e.length===n?e:e.slice(0,n),P=n=>s(e=>{let t=n===void 0?m.dec(e):n!==1/0?n:e.byteLength-e.i,o=new Uint8Array(e.buffer.slice(e.i,e.i+t));return e.i+=t,o}),U=n=>i(S(n),P(n));U.enc=S;U.dec=P;var Y=(n,e)=>{let t=Object.keys(n),o=new Map(e?.map((c,d)=>[t[d],c])??t.map((c,d)=>[c,d])),r=c=>o.get(c);return({tag:c,value:d})=>a(u.enc(r(c)),n[c](d))},F=(n,e)=>{let t=Object.keys(n),o=new Map(e?.map((r,c)=>[r,t[c]])??t.map((r,c)=>[c,r]));return s(r=>{let c=u.dec(r),d=o.get(c),f=n[d];return{tag:d,value:f(r)}})},b=(n,...e)=>i(Y(l(n,([t])=>t),...e),F(l(n,([,t])=>t),...e));b.enc=Y;b.dec=F;var H=n=>s(e=>{let t=u.dec(e);if(t!==0)return n===D[1]?t===1:n(e)}),W=n=>e=>{let t=new Uint8Array(1);return e===void 0?(t[0]=0,t):(t[0]=1,n===D[0]?(t[0]=e?1:2,t):a(t,n(e)))},C=n=>i(W(n[0]),H(n[1]));C.enc=W;C.dec=H;var G=(n,e)=>s(t=>{let o=u[1](t)===0,c=(o?n:e)(t);return{success:o,value:c}}),X=(n,e)=>({success:t,value:o})=>a(u[0](t?0:1),(t?n:e)(o)),k=(n,e)=>i(X(n[0],e[0]),G(n[1],e[1]));k.dec=G;k.enc=X;var $=(...n)=>s(e=>n.map(t=>t(e))),q=(...n)=>e=>a(...e.map((t,o)=>n[o](t))),y=(...n)=>i(q(...n.map(([e])=>e)),$(...n.map(([,e])=>e)));y.enc=q;y.dec=$;var J=n=>{let e=Object.keys(n);return E(y.enc(...Object.values(n)),t=>e.map(o=>t[o]))},Q=n=>{let e=Object.keys(n);return A(y.dec(...Object.values(n)),t=>Object.fromEntries(t.map((o,r)=>[e[r],o])))},w=n=>i(J(l(n,e=>e[0])),Q(l(n,e=>e[1])));w.enc=J;w.dec=Q;var Z=(n,e)=>e>=0?t=>a(...t.map(n)):t=>a(m.enc(t.length),...t.map(n)),z=(n,e)=>s(t=>{let o=e>=0?e:m.dec(t),r=new Array(o);for(let c=0;c<o;c++)r[c]=n(t);return r}),B=(n,e)=>i(Z(n[0],e),z(n[1],e));B.enc=Z;B.dec=z; | ||
var x=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var ne=Object.prototype.hasOwnProperty;var re=(t,e,n)=>e in t?x(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var oe=(t,e)=>{for(var n in e)x(t,n,{get:e[n],enumerable:!0})},ce=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of te(e))!ne.call(t,r)&&r!==n&&x(t,r,{get:()=>e[r],enumerable:!(o=ee(e,r))||o.enumerable});return t};var ie=t=>ce(x({},"__esModule",{value:!0}),t);var R=(t,e,n)=>(re(t,typeof e!="symbol"?e+"":e,n),n);var Le={};oe(Le,{Bytes:()=>U,Enum:()=>C,Option:()=>b,Result:()=>k,Struct:()=>B,Tuple:()=>y,Vector:()=>w,_void:()=>j,bool:()=>D,compact:()=>u,createCodec:()=>i,createDecoder:()=>se,enhanceCodec:()=>V,enhanceDecoder:()=>A,enhanceEncoder:()=>I,i128:()=>le,i16:()=>fe,i256:()=>De,i32:()=>pe,i64:()=>ye,i8:()=>ue,str:()=>M,u128:()=>ge,u16:()=>l,u256:()=>Oe,u32:()=>O,u64:()=>K,u8:()=>m});module.exports=ie(Le);var v={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15};function de(t){let e=t.length%2,n=(t[1]==="x"?2:0)+e,o=(t.length-n)/2+e,r=new Uint8Array(o);e&&(r[0]=0|v[t[2]]);for(let c=0;c<o;){let d=n+c*2,f=v[t[d]],T=v[t[d+1]];r[e+c++]=f<<4|T}return r}var E=class extends Uint8Array{constructor(n){super(n);R(this,"i",0);R(this,"v");this.v=new DataView(n)}},s=t=>e=>t(e instanceof E?e:new E(e instanceof Uint8Array?e.buffer:typeof e=="string"?de(e).buffer:e));var a=(...t)=>{let e=t.length,n=0;for(let r=0;r<e;r++)n+=t[r].byteLength;let o=new Uint8Array(n);for(let r=0,c=0;r<e;r++){let d=t[r];o.set(d,c),c+=d.byteLength}return o};function g(t,e){let n=Object.keys(t),o=n.length,r={};for(let c=0;c<o;c++){let d=n[c];r[d]=e(t[d],d)}return r}var se=s,i=(t,e)=>{let n=[t,e];return n.enc=t,n.dec=e,n},I=(t,e)=>n=>t(e(n)),A=(t,e)=>n=>e(t(n)),V=([t,e],n,o)=>i(I(t,n),A(e,o));function ae(t,e){return s(n=>{let o=n.v[e](n.i,!0);return n.i+=t,o})}function me(t,e){return n=>{let o=new Uint8Array(t);return new DataView(o.buffer)[e](0,n,!0),o}}function p(t,e,n){return i(me(t,n),ae(t,e))}var m=p(1,"getUint8","setUint8"),l=p(2,"getUint16","setUint16"),O=p(4,"getUint32","setUint32"),K=p(8,"getBigUint64","setBigUint64"),ue=p(1,"getInt8","setInt8"),fe=p(2,"getInt16","setInt16"),pe=p(4,"getInt32","setInt32"),ye=p(8,"getBigInt64","setBigInt64"),h=t=>{let e=new Uint8Array(16),n=new DataView(e.buffer);return n.setBigInt64(0,t,!0),n.setBigInt64(8,t>>64n,!0),e},L=t=>s(e=>{let{v:n,i:o}=e,r=n.getBigUint64(o,!0),c=n[t](o+8,!0);return e.i+=16,c<<64n|r}),ge=i(h,L("getBigUint64")),le=i(h,L("getBigInt64")),_=t=>{let e=new Uint8Array(32),n=new DataView(e.buffer);return n.setBigInt64(0,t,!0),n.setBigInt64(8,t>>64n,!0),n.setBigInt64(16,t>>128n,!0),n.setBigInt64(24,t>>192n,!0),e},S=t=>s(e=>{let n=e.v.getBigUint64(e.i,!0);return e.i+=8,n|=e.v.getBigUint64(e.i,!0)<<64n,e.i+=8,n|=e.v.getBigUint64(e.i,!0)<<128n,e.i+=8,n|=e.v[t](e.i,!0)<<192n,e.i+=8,n}),Oe=i(_,S("getBigUint64")),De=i(_,S("getBigInt64"));var D=V(m,t=>t?1:0,Boolean);var Te=[m[1],l[1],O[1]],xe=s(t=>{let e=t[t.i],n=e&3;if(n<3)return Te[n](t)>>>2;let o=(e>>>2)+4;t.i++;let r=0n,c=o/8|0,d=0n;for(let T=0;T<c;T++)r=K[1](t)<<d|r,d+=64n;let f=o%8;return f>3&&(r=BigInt(O[1](t))<<d|r,d+=32n,f-=4),f>1&&(r=BigInt(l[1](t))<<d|r,d+=16n,f-=2),f&&(r=BigInt(m[1](t))<<d|r),r}),Ee=1n<<56n,Ie=1<<24,Ae=256,Ke=4294967295n,Ue=1<<6,Ce=1<<14,be=1<<30,ke=t=>{if(t<0)throw new Error(`Wrong compact input (${t})`);let e=Number(t)<<2;if(t<Ue)return m[0](e);if(t<Ce)return l[0](e|1);if(t<be)return O[0](e|2);let n=[new Uint8Array(1)],o=BigInt(t);for(;o>=Ee;)n.push(K[0](o)),o>>=64n;o>=Ie&&(n.push(O[0](Number(o&Ke))),o>>=32n);let r=Number(o);r>=Ae&&(n.push(l[0](r)),r>>=16),r&&n.push(m[0](r));let c=a(...n);return c[0]=c.length-5<<2|3,c},u=i(ke,xe);var Be=new TextEncoder,we=t=>{let e=Be.encode(t);return a(u.enc(e.length),e)},Re=new TextDecoder,ve=s(t=>{let e=u.dec(t),n=new DataView(t.buffer,t.i,e);return t.i+=e,Re.decode(n)}),M=i(we,ve);var Ve=()=>{},he=new Uint8Array(0),j=i(()=>he,Ve);var N=t=>t===void 0?e=>a(u.enc(e.length),e):e=>e.length===t?e:e.slice(0,t),P=t=>s(e=>{let n=t===void 0?u.dec(e):t!==1/0?t:e.byteLength-e.i,o=new Uint8Array(e.buffer.slice(e.i,e.i+n));return e.i+=n,o}),U=t=>i(N(t),P(t));U.enc=N;U.dec=P;var Y=(t,e)=>{let n=Object.keys(t),o=new Map(e?.map((c,d)=>[n[d],c])??n.map((c,d)=>[c,d])),r=c=>o.get(c);return({tag:c,value:d})=>a(m.enc(r(c)),t[c](d))},F=(t,e)=>{let n=Object.keys(t),o=new Map(e?.map((r,c)=>[r,n[c]])??n.map((r,c)=>[c,r]));return s(r=>{let c=m.dec(r),d=o.get(c),f=t[d];return{tag:d,value:f(r)}})},C=(t,...e)=>i(Y(g(t,([n])=>n),...e),F(g(t,([,n])=>n),...e));C.enc=Y;C.dec=F;var H=t=>s(e=>{let n=m.dec(e);if(n!==0)return t===D[1]?n===1:t(e)}),W=t=>e=>{let n=new Uint8Array(1);return e===void 0?(n[0]=0,n):(n[0]=1,t===D[0]?(n[0]=e?1:2,n):a(n,t(e)))},b=t=>i(W(t[0]),H(t[1]));b.enc=W;b.dec=H;var G=(t,e)=>s(n=>{let o=m[1](n)===0,c=(o?t:e)(n);return{success:o,value:c}}),X=(t,e)=>({success:n,value:o})=>a(m[0](n?0:1),(n?t:e)(o)),k=(t,e)=>i(X(t[0],e[0]),G(t[1],e[1]));k.dec=G;k.enc=X;var $=(...t)=>s(e=>t.map(n=>n(e))),q=(...t)=>e=>a(...e.map((n,o)=>t[o](n))),y=(...t)=>i(q(...t.map(([e])=>e)),$(...t.map(([,e])=>e)));y.enc=q;y.dec=$;var J=t=>{let e=Object.keys(t);return I(y.enc(...Object.values(t)),n=>e.map(o=>n[o]))},Q=t=>{let e=Object.keys(t);return A(y.dec(...Object.values(t)),n=>Object.fromEntries(n.map((o,r)=>[e[r],o])))},B=t=>i(J(g(t,e=>e[0])),Q(g(t,e=>e[1])));B.enc=J;B.dec=Q;var Z=(t,e)=>e>=0?n=>a(...n.map(t)):n=>a(u.enc(n.length),...n.map(t)),z=(t,e)=>s(n=>{let o=e>=0?e:u.dec(n),r=new Array(o);for(let c=0;c<o;c++)r[c]=t(n);return r}),w=(t,e)=>i(Z(t[0],e),z(t[1],e));w.enc=Z;w.dec=z; | ||
//# sourceMappingURL=scale-ts.cjs.production.min.js.map |
@@ -8,2 +8,4 @@ export declare type Encoder<T> = (value: T) => Uint8Array; | ||
export declare type CodecType<T extends Codec<any>> = T extends Codec<infer V> ? V : unknown; | ||
export declare type EncoderType<T extends Encoder<any>> = T extends Encoder<infer V> ? V : unknown; | ||
export declare type DecoderType<T extends Decoder<any>> = T extends Decoder<infer V> ? V : unknown; | ||
export declare type StringRecord<T> = { | ||
@@ -10,0 +12,0 @@ [Sym: symbol]: never; |
{ | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"repository": { | ||
@@ -4,0 +4,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184861
1305