We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ff1d87 commit 33a3603Copy full SHA for 33a3603
src/utils.ts
@@ -176,6 +176,11 @@ export const typify = (
176
}
177
debug(chalk.red('Record with missing inner types, default to any'));
178
return 'Record<any, any>';
179
+ case 'partial':
180
+ if (!innerTypes || innerTypes.length !== 1) {
181
+ throw new Error('Partial generic type must have exactly one inner type. i.e. Partial<T>');
182
+ }
183
+ return `Partial<${typify(innerTypes[0])}>`;
184
case 'url':
185
return 'string';
186
case 'touchbaritem':
0 commit comments