Skip to content
86% off$349 $48.86code BF2026

Guides

quicktype error TS7018 in generated TypeScript: fixes (Mac)

Fix quicktype's TS7018 'implicitly has an any[] type' error in generated TypeScript, plus codePointAt errors and stalls on huge JSON, with workarounds.

TroubleshootingUpdated 6 min read

On this page

You ran quicktype, added the generated TypeScript to your project, and the build stopped:

text
error TS7018: Object literal's property 'props' implicitly has an 'any[]' type

A bug report confirmed this on quicktype v23.3.0 in July 2026. The property name in your error may differ. The sections below cover this error first, then three other quicktype failures reported in the same period.

Why TS7018 happens

TS7018 comes from the TypeScript compiler, not from quicktype. It appears when noImplicitAny is on and the compiler can only infer an implicit any[] type for a property in an object literal. The strict option turns noImplicitAny on.

So two things have to be true: your project checks strictly, and the generated file contains an object literal with a property the compiler can't type. We haven't reproduced it and don't know why quicktype emits that code. If your tsconfig.json has strict: true, that explains why you see it and a looser project doesn't.

Fix TS7018, most likely fix first

1. Update quicktype and TypeScript

  1. Check your quicktype version with quicktype --version.
  2. Update it, then regenerate the file.
  3. Update TypeScript in your project too, then rebuild.

As of November 2026, the newest quicktype release we found is v26.0.0. From v24 the command-line tool needs Node.js 20 or later. We haven't confirmed that any newer release fixes TS7018, so don't assume it does.

2. Skip type-checking for the generated file

Put this on the first line of the generated .ts file:

typescript
// @ts-nocheck

This hides every compile error in that file, not just TS7018. The exported types still work when other files import them. To undo it, delete the line. Regenerating overwrites the file, so you will need to add it again.

3. Annotate the line tsc reports

If the reported property is initialized with an empty array ([]), give it an explicit type, for example [] as string[]. Pick the element type your data really has. Regenerating overwrites this edit, so if you generate in a script, apply the change in a post-generation step.

4. Last resort: loosen noImplicitAny

Set "noImplicitAny": false in tsconfig.json. The error goes away, but checking gets weaker for all of your code, not only the generated file. Prefer fix 2.

Other quicktype errors reported around the same time

ErrorReported causeWhat to try
Error: s.codePointAt is not a functionJSON Schema with integer enums (cause unknown)Update quicktype, then test a copy of the schema without the integer enum list
Internal error: Cannot combine type attribute accessorNamesReported November 2026, cause not explainedGenerate each input alone, then cut the failing one down
Stall on huge JSONOne report: more than 8,388,608 distinct stringsGenerate from a trimmed sample
Web interface fails to loadReported as issue #2769Reload, try another browser, use the CLI

"s.codePointAt is not a function"

This appears when generating from a JSON Schema that contains integer enums. We don't know the root cause.

  1. Update quicktype and retry before editing anything.
  2. Make a working copy of the schema. Remove the integer enum list from the affected property, leaving "type": "integer".
  3. Generate from the copy, then add the allowed numbers by hand.

Step 2 is an untested workaround based on the report, not a confirmed fix.

"Cannot combine type attribute accessorNames"

The sources we have don't explain this one, so the practical route is to find the input that triggers it:

  1. If you pass several samples or schemas, generate each one alone and see which fails.
  2. Delete keys from the failing file until the error disappears. The last thing you removed is the trigger.
  3. Report it with that minimal input (see "If nothing works" below).

Stalls on very large JSON

If quicktype runs for a very long time on a big file, shrink the sample to a few representative elements per array. Type generation needs the shape of your data, not every record, and a smaller sample has far fewer distinct strings. We haven't verified that trimming avoids the stall in that report.

If you have Bytepliers, you can trim in JSON Formatter, which accepts input up to 64 MB. See the JSON Formatter docs.

  1. Open JSON Formatter and paste or drop your file.
  2. In the filter bar under the output, leave the language on jq.
  3. Enter a filter such as [limit(5; .items[])], replacing .items with the path to your array.
  4. Copy the filtered output.

jq filters in Bytepliers have a 2-second time limit, so an extremely large file may time out. A small sample can also miss keys that appear only in some records, and those fields won't be marked optional. Include a few elements that cover the variations.

Web interface not loading

Reload the page and try another browser. If it still fails, use the command-line tool, which needs Node.js 20 or later from v24.

Checklist before you try again

  • You are on the latest quicktype release and a current TypeScript version.
  • You know which exact line tsc reports, and the file is the one quicktype generated.
  • You tried // @ts-nocheck or an explicit annotation before touching tsconfig.json.
  • For a crash, you have the smallest input that still fails.

Generating Swift or TypeScript types from a plain JSON sample with Bytepliers

We make Bytepliers, so weigh this accordingly. quicktype is free and open source, and it covers more than we do. Bytepliers is only a partial alternative, for one case: you have a plain JSON sample and want Swift or TypeScript types. We can't promise its output matches quicktype's, so check that it compiles in your project.

Bytepliers JSON → Typesquicktype
InputPlain JSON sampleJSON, JSON Schema, GraphQL
Output languagesSwift, TypeScriptC#, Swift, TypeScript, Go, C++, Kotlin, Objective-C and more
Input limit2 MBNot stated in our sources
Price (as of November 2026)Part of MacSuite, $349 one-time, 7-day free trialFree, open source (web app and CLI)

How to use it:

  1. Open Bytepliers and choose JSON → Types in the Convert group, or press ⌘K and search for it.
  2. Paste your JSON into JSON Sample.
  3. Choose the TypeScript tab (Swift is the default).
  4. Set Root type (default Root). For TypeScript, Declare as is interface (default) or type.
  5. Copy the output.

With a sample, nested objects become named types and array element names are singularized. Array elements are merged: a key missing from some elements becomes optional, and a null value makes the property optional. It does not take JSON Schema, makes no Go, Kotlin, Rust or C# output, and refuses input over 2 MB. For a walkthrough, see Generate Swift Codable structs from JSON. Bytepliers is part of MacSuite, and you can try it free for 7 days.

If nothing works

For a quicktype bug, open an issue on quicktype's GitHub issue tracker. Search it first for your exact error text, since several of these errors already have reports. For TS7018 itself, the TypeScript project's documentation on compiler options explains noImplicitAny. If the problem is in Bytepliers, use the support page.

Include the exact error text, your quicktype and Node.js versions, the command or web options you used, and the smallest input that still fails. A message you can paste:

text
quicktype generated TypeScript fails to compile with:
error TS7018: Object literal's property 'props' implicitly has an 'any[]' type

quicktype version: <version>
Node.js version: <version>
TypeScript version: <version>
Command: <the command you ran>
tsconfig: strict is on
Minimal input that still fails: attached

Common questions

Is TS7018 a quicktype bug or a TypeScript error?

The error text comes from TypeScript's compiler. The report treats the generated code as the trigger, so the fix belongs in quicktype. Until that is fixed, the workarounds above apply.

Will // @ts-nocheck break my imports?

No. It stops tsc from checking that one file, but the interfaces and types it exports remain usable elsewhere. The cost is that real errors in that file go unreported.

Does Bytepliers read JSON Schema?

No. JSON → Types reads a plain JSON sample only. If your input is a schema, stay with quicktype.

Can I generate Go, Kotlin or Rust types in Bytepliers?

No. Output is Swift Codable structs or TypeScript interfaces and types only.

Every app.
One purchase.