Skip to content

export type SchemaArray = Undefined[];  #450

@bakon11

Description

@bakon11

Describe the bug
A clear and concise description of what the bug is.
https://github.com/open-rpc/meta-schema/blame/78bb78fb9a5c3cd3f5117e5c681e43e9f31d7016/index.d.ts#L128

Since this changed from JSONSchema[] to Undefined on line 128 and few other lines:
134,
161,
188,
193,
197,
202,
209,
210,
211,
215,
236

Also exported as undefined the error Cannot find name 'Undefined'. shows up when building server side project.

I was able to fix the problem by changing the first one to:
export type SchemaArray = JSONSchema[];
and the rest as needed to JSONSchema

To Reproduce
Steps to reproduce the behavior:
Create a simple open-rpc project using latest generator, use typescript(only choice).
Create one simple method.
Go into server/typescript dir.
npm install
npm run build

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Debian 11
  • Node: 18.13.0
  • NPM: 9.4.1

image
image

Hope this helps.
Thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions