-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abc545c
commit 62196f4
Showing
4 changed files
with
194 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
163 changes: 87 additions & 76 deletions
163
website/src/routes/api/(async)/nullableAsync/properties.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,130 +1,141 @@ | ||
import type { PropertyProps } from '~/components'; | ||
|
||
export const properties: Record<string, PropertyProps> = { | ||
TKey: { | ||
TWrapped: { | ||
modifier: 'extends', | ||
type: { | ||
type: 'union', | ||
options: [ | ||
type: 'custom', | ||
name: 'BaseSchema', | ||
href: '../BaseSchema/', | ||
generics: [ | ||
'unknown', | ||
'unknown', | ||
{ | ||
type: 'custom', | ||
name: 'BaseSchema', | ||
href: '../BaseSchema/', | ||
generics: [ | ||
'unknown', | ||
'unknown', | ||
{ | ||
type: 'custom', | ||
name: 'BaseIssue', | ||
href: '../BaseIssue/', | ||
generics: ['unknown'], | ||
}, | ||
], | ||
name: 'BaseIssue', | ||
href: '../BaseIssue/', | ||
generics: ['unknown'], | ||
}, | ||
], | ||
}, | ||
}, | ||
TDefault: { | ||
modifier: 'extends', | ||
type: { | ||
type: 'custom', | ||
name: 'Default', | ||
href: '../Default/', | ||
generics: [ | ||
{ | ||
type: 'custom', | ||
name: 'BaseSchemaAsync', | ||
href: '../BaseSchemaAsync/', | ||
generics: [ | ||
'unknown', | ||
'unknown', | ||
{ | ||
type: 'custom', | ||
name: 'BaseIssue', | ||
href: '../BaseIssue/', | ||
generics: ['unknown'], | ||
}, | ||
], | ||
name: 'TWrapped', | ||
}, | ||
'undefined', | ||
], | ||
}, | ||
}, | ||
TValue: { | ||
BaseSchema: { | ||
modifier: 'extends', | ||
type: { | ||
type: 'union', | ||
options: [ | ||
type: 'custom', | ||
name: 'BaseSchema', | ||
href: '../BaseSchema/', | ||
generics: [ | ||
{ | ||
type: 'custom', | ||
name: 'BaseSchema', | ||
href: '../BaseSchema/', | ||
generics: [ | ||
'unknown', | ||
'unknown', | ||
type: 'union', | ||
options: [ | ||
{ | ||
type: 'custom', | ||
name: 'BaseIssue', | ||
href: '../BaseIssue/', | ||
generics: ['unknown'], | ||
name: 'InferInput', | ||
href: '../InferInput/', | ||
generics: [ | ||
{ | ||
type: 'custom', | ||
name: 'TWrapped', | ||
}, | ||
], | ||
}, | ||
'undefined', | ||
], | ||
}, | ||
{ | ||
type: 'custom', | ||
name: 'BaseSchemaAsync', | ||
href: '../BaseSchemaAsync/', | ||
name: 'InferOptionalOutput', | ||
href: '../InferOptionalOutput/', | ||
generics: [ | ||
'unknown', | ||
'unknown', | ||
{ | ||
type: 'custom', | ||
name: 'BaseIssue', | ||
href: '../BaseIssue/', | ||
generics: ['unknown'], | ||
name: 'TWrapped', | ||
}, | ||
{ | ||
type: 'custom', | ||
name: 'TDefault', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
TDefault: { | ||
modifier: 'extends', | ||
type: { | ||
type: 'custom', | ||
name: 'Default', | ||
href: '../Default/', | ||
generics: [ | ||
{ | ||
type: 'custom', | ||
name: 'TWrapped', | ||
name: 'InferIssue', | ||
href: '../InferIssue/', | ||
generics: [ | ||
{ | ||
type: 'custom', | ||
name: 'TWrapped', | ||
}, | ||
], | ||
}, | ||
'undefined', | ||
], | ||
}, | ||
}, | ||
key: { | ||
type: { | ||
type: 'custom', | ||
name: 'TKey', | ||
}, | ||
}, | ||
value: { | ||
type: { | ||
type: { | ||
type: 'custom', | ||
name: 'TValue', | ||
type: 'string', | ||
value: 'optional', | ||
}, | ||
}, | ||
message: { | ||
reference: { | ||
type: { | ||
type: 'custom', | ||
name: 'TMessage', | ||
modifier: 'typeof', | ||
name: 'optional', | ||
href: '../optional/', | ||
}, | ||
}, | ||
Schema: { | ||
expects: { | ||
type: { | ||
type: 'custom', | ||
name: 'nullableAsync', | ||
href: '../nullableAsync/', | ||
generics: [ | ||
type: 'template', | ||
parts: [ | ||
{ | ||
type: 'string', | ||
value: '(', | ||
}, | ||
{ | ||
type: 'custom', | ||
name: 'TWrapped', | ||
indexes: [ | ||
{ | ||
type: 'string', | ||
value: 'expects', | ||
}, | ||
], | ||
}, | ||
{ | ||
type: 'custom', | ||
name: 'TDefault', | ||
type: 'string', | ||
value: ' | undefined)', | ||
}, | ||
], | ||
}, | ||
}, | ||
wrapped: { | ||
type: { | ||
type: 'custom', | ||
name: 'TWrapped', | ||
}, | ||
}, | ||
default: { | ||
type: { | ||
type: 'custom', | ||
name: 'TDefault', | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.