GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [FeatureRequest] More type out of box · Issue #182 · msgpack/msgpack-javascript Open DescriptionBackgroundMigrate from And I had a look at types at export declare function encode<ContextType = undefined>( // seems everything is OK out-of-box value: unknown, options?: EncodeOptions<SplitUndefined<ContextType>> ): Uint8Array; Reproducevar msgpack=require('@msgpack/msgpack') var nop=x=>msgpack.decode(msgpack.encode(x)) Actual> nop({x:Buffer.from('x'), y:new ArrayBuffer(0), z:new Error('msg')})
{ x: Uint8Array(1) [ 120 ], y: {}, z: {} }Expected> msgpack = require('msgpack-lite')
> nop({x:Buffer.from('x'), y:new ArrayBuffer(0), z:new Error('msg')})
{
x: <Buffer 78>,
y: ArrayBuffer { [Uint8Contents]: <>, byteLength: 0 },
z: Error: msg
}Suggestionexport declare function encode<ContextType = undefined>( value: unknown, options?: EncodeOptions<SplitUndefined<ContextType>> ): Uint8Array; export declare function encodeOutOfBox<ContextType = undefined>( // any types are tested, `decode(encode(value))` should be same out of box value: TESTED_TYPES, options?: EncodeOptions<SplitUndefined<ContextType>> ): Uint8Array; Reacted by Connor Peet, Kevin Destrem and loynoir Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |