Skip to content

[JavaScript] support unsigned number for JavaScript #3130

@chaokunyang

Description

@chaokunyang

Feature Request

No response

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

Add schema-based support to unsigned number fields for JavaScript:

import { Fory, Type } from '@anthropic/fory';

const fory = new Fory();

// Define type with field metadata
fory.registerType({
  name: 'Foo',
  fields: {
    f1: { type: Type.uint32, id: 0 },
    f3: { type: Type.tagged_int32, id: 2 }
  },
});

Describe alternatives you've considered

No response

Additional context

#3110
#3113

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions