fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(tsc): add support for `!==` operator in `createBinaryExpression`

+6 -4
+6 -4
packages/openapi-ts/src/tsc/transform.ts
··· 67 67 right, 68 68 }: { 69 69 left: ts.Expression; 70 - operator?: '=' | '===' | 'in' | '??'; 70 + operator?: '=' | '===' | '!==' | 'in' | '??'; 71 71 right: ts.Expression | string; 72 72 }) => { 73 73 const expression = ts.factory.createBinaryExpression( ··· 77 77 ? ts.SyntaxKind.EqualsToken 78 78 : operator === '===' 79 79 ? ts.SyntaxKind.EqualsEqualsEqualsToken 80 - : operator === '??' 81 - ? ts.SyntaxKind.QuestionQuestionToken 82 - : ts.SyntaxKind.InKeyword, 80 + : operator === '!==' 81 + ? ts.SyntaxKind.ExclamationEqualsEqualsToken 82 + : operator === '??' 83 + ? ts.SyntaxKind.QuestionQuestionToken 84 + : ts.SyntaxKind.InKeyword, 83 85 typeof right === 'string' ? createIdentifier({ text: right }) : right, 84 86 ); 85 87 return expression;