Skip to content

Commit

Permalink
Merge branch 'master' into feat/core/language-types
Browse files Browse the repository at this point in the history
  • Loading branch information
inferrinizzard committed May 18, 2024
2 parents 811ac4a + 1ad532b commit b61fbe2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
},
"scripts": {
"pub": "script/publish.sh",
"build": "npm run build --workspaces --if-present && tsc",
"build": "npm run clean && npm run build --workspaces --if-present && tsc",
"test": "script/test",
"start": "script/watch",
"clean": "rm -rf dist node_modules *~ packages/*/{dist,node_modules,out}",
"clean": "rm -rf dist *~ packages/*/{dist,out}",
"debug": "node --inspect-brk --max-old-space-size=4096 ./dist/index.js",
"lint": "eslint src/** packages/*/src/**",
"lint:fix": "eslint --fix src/** packages/*/src/**"
Expand Down
1 change: 0 additions & 1 deletion packages/quicktype-core/src/input/Inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { type LanguageName } from "../types";
import { type CompressedJSON, CompressedJSONFromString, type Value } from "./CompressedJSON";
import { TypeInference } from "./Inference";


export interface Input<T> {
addSource: (source: T) => Promise<void>;
addSourceSync: (source: T) => void;
Expand Down
1 change: 0 additions & 1 deletion packages/quicktype-core/src/language/All.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { TypeScriptEffectSchemaTargetLanguage } from "./TypeScriptEffectSchema";
import { FlowTargetLanguage, TypeScriptTargetLanguage } from "./TypeScriptFlow";
import { TypeScriptZodTargetLanguage } from "./TypeScriptZod";


export const all = [
new CJSONTargetLanguage(),
new CPlusPlusTargetLanguage(),
Expand Down
3 changes: 1 addition & 2 deletions packages/quicktype-core/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { type all } from "./language/All";
import { type TargetLanguage } from "./TargetLanguage";


type AllLanguages = (typeof all)[number];

export type LanguageDisplayName<Language extends TargetLanguage = AllLanguages> = Language["displayName"];
Expand All @@ -14,7 +13,7 @@ export type LanguageNameMap = {
[Language in AllLanguages as LanguageName<Language>]: Language;
};

// FIXME: remove these when options are strongly types
// FIXME: remove these when options are strongly typed

/* eslint-disable @typescript-eslint/no-explicit-any */
export type FixMeOptionsType = Record<string, any>;
Expand Down

0 comments on commit b61fbe2

Please sign in to comment.