Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

https://api.redocly.com/registry/bundle/xsolla/igs-bb-api/v1/openapi.yaml

I received a d.ts file through In this api specification basic usage

version >>> "openapi-typescript": "^7.0.0-next.2",
script >>> openapi-typescript openapi/spec.yaml --output src/types/api.ts

From this file
type Test = paths['/v2/project/{project_id}/items']['get']['responses']['200']['content']['application/json']['items']

on the receiving end of
if (props == null) return null
if ('item_id' in props) return

{props.item_id}

Props.item_id is treated as unkown when done

image

I solved it thank!

You must be logged in to vote

Replies: 1 comment · 1 reply

Comment options

Ah glad you figured it out. What was the issue?

You must be logged in to vote
1 reply
@mineclover
Comment options

The open api document I used was a payment document...
I was using a modular component, a web trend, so I had to put NonNullable where I had to control null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.