Skip to content

Commit

Permalink
feat (reimplement): update to node 22
Browse files Browse the repository at this point in the history
λœλŒ€μš”
  • Loading branch information
HotoRas committed Sep 7, 2024
1 parent e7152d3 commit 0e9a08e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.16.0
22.5.1
4 changes: 3 additions & 1 deletion packages/misskey-js/generator/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { OpenAPIV3_1 } from 'openapi-types';
import { toPascal } from 'ts-case-convert';
import OpenAPIParser from '@readme/openapi-parser';
import openapiTS from 'openapi-typescript';
import { values } from 'lodash';
import ts from 'typescript';

async function generateBaseTypes(
openApiDocs: OpenAPIV3_1.Document,
Expand All @@ -20,7 +22,7 @@ async function generateBaseTypes(
}
lines.push('');

const generatedTypes = await openapiTS(openApiJsonPath, {
const generatedTypes: string = await openapiTS(openApiJsonPath, {
exportType: true,
transform(schemaObject) {
if ('format' in schemaObject && schemaObject.format === 'binary') {
Expand Down

0 comments on commit 0e9a08e

Please sign in to comment.