Skip to content

Instantly share code, notes, and snippets.

@JoshuaKGoldberg
Last active September 22, 2023 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshuaKGoldberg/0f6ca1674a86f6d5961fbb28219276b9 to your computer and use it in GitHub Desktop.
Save JoshuaKGoldberg/0f6ca1674a86f6d5961fbb28219276b9 to your computer and use it in GitHub Desktop.
DefinitelyFormatted errors Sep 22

External Dependencies

i18next

Error: Errors in typescript@4.5 for external dependencies:
Error: node_modules/i18next/index.d.ts(2,34): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './typescript/helpers' instead.
Error: node_modules/i18next/index.d.ts(14,8): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './typescript/options' instead.
Error: node_modules/i18next/index.d.ts(16,43): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './typescript/t' instead.
Error: node_modules/i18next/index.d.ts(497,1): error TS1383: Only named exports may use 'export type'.
Error: node_modules/i18next/index.d.ts(497,20): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './typescript/options' instead.
Error: node_modules/i18next/index.d.ts(516,8): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './typescript/options' instead.
Error: node_modules/i18next/index.d.ts(517,1): error TS1383: Only named exports may use 'export type'.
Error: node_modules/i18next/index.d.ts(517,20): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './typescript/t' instead.
Error: node_modules/i18next/index.d.ts(524,8): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './typescript/t' instead.

inquirer

Errors in typescript@5.3 for external dependencies:
Error: ../inquirer/index.d.ts(16,28): error TS2307: Cannot find module 'rxjs' or its corresponding type declarations.
Error: ../inquirer/lib/prompts/base.d.ts(2,28): error TS2307: Cannot find module 'rxjs' or its corresponding type declarations.
Error: ../inquirer/lib/prompts/editor.d.ts(2,39): error TS2307: Cannot find module 'rxjs' or its corresponding type declarations.
Error: ../inquirer/lib/utils/events.d.ts(2,28): error TS2307: Cannot find module 'rxjs' or its corresponding type declarations.

node

Error: Errors in typescript@4.5 for external dependencies:
Error: ../node/buffer.d.ts(46,1): error TS6200: Definitions of the following identifiers conflict with those in another file: INSPECT_MAX_BYTES, kMaxLength, kStringMaxLength, constants, TranscodeEncoding, SlowBuffer, Buffer, Blob, File, atob, btoa, BufferEncoding, WithImplicitCoercion
Error: ../node/ts4.8/buffer.d.ts(46,1): error TS6200: Definitions of the following identifiers conflict with those in another file: INSPECT_MAX_BYTES, kMaxLength, kStringMaxLength, constants, TranscodeEncoding, SlowBuffer, Buffer, Blob, File, atob, btoa, BufferEncoding, WithImplicitCoercion

preact

Error: Errors in typescript@4.5 for external dependencies:
Error: node_modules/preact/src/jsx.d.ts(1077,25): error TS2304: Cannot find name 'PictureInPictureEvent'.
Error: node_modules/preact/src/jsx.d.ts(1122,16): error TS2344: Type 'TargetedPictureInPictureEvent<Target>' does not satisfy the constraint 'TargetedEvent<EventTarget, Event>'.
  Type 'TargetedPictureInPictureEvent<Target>' is missing the following properties from type 'Omit<Event, "currentTarget">': type, target, bubbles, cancelBubble, and 17 more.

react

Error: Errors in typescript@4.5 for external dependencies:
Error: ../react/jsx-runtime.d.ts(4,34): error TS2694: Namespace 'React.JSX' has no exported member 'ElementType'.

In Packages

draco3d

Error in draco3d
Error: /home/runner/work/DefinitelyTyped/DefinitelyTyped/types/draco3d/draco3d-tests.ts:9:45
ERROR: 9:45   expect  TypeScript@5.3 compile error:
Property 'ExpertEncoder' does not exist on type 'EncoderModule'.
ERROR: 52:39  expect  TypeScript@5.3 compile error:
Property 'ExpertEncoder' does not exist on type 'EncoderModule'.

inquirer

Error: /home/runner/work/DefinitelyTyped/DefinitelyTyped/types/inquirer/inquirer-tests.ts:234:5
ERROR: 234:5  expect  Compile error in typescript@5.0 but not in typescript@5.1.
Fix with a comment '// Minimum TypeScript Version: 5.1' just under the header.
No overload matches this call.
  Overload 1 of 2, '(observerOrNext?: Partial<Observer<{ name: string; answer: any; }>> | ((value: { name: string; answer: any; }) => void) | undefined): Subscription', gave the following error.
    Type '(value: {    name_: string;    answer: number;}) => void' is not assignable to type '(value: { name: string; answer: any; }) => void'.
      Types of parameters 'value' and 'value' are incompatible.
        Property 'name_' is missing in type '{ name: string; answer: any; }' but required in type '{ name_: string; answer: number; }'.
  Overload 2 of 2, '(next?: ((value: { name: string; answer: any; }) => void) | null | undefined, error?: ((error: any) => void) | null | undefined, complete?: (() => void) | null | undefined): Subscription', gave the following error.
    Argument of type '{ next: (value: {    name_: string;    answer: number;}) => void; }' is not assignable to parameter of type '(value: { name: string; answer: any; }) => void'.
      Object literal may only specify known properties, and 'next' does not exist in type '(value: { name: string; answer: any; }) => void'.
ERROR: 235:9  expect  Compile error in typescript@5.0 but not in typescript@5.1.
Fix with a comment '// Minimum TypeScript Version: 5.1' just under the header.
Unused '@ts-expect-error' directive.
ERROR: 262:5  expect  Compile error in typescript@5.0 but not in typescript@5.1.
Fix with a comment '// Minimum TypeScript Version: 5.1' just under the header.
No overload matches this call.
  Overload 1 of 2, '(observerOrNext?: Partial<Observer<QuestionAnswer<{ str: string; num: number; }>>> | ((value: QuestionAnswer<{ str: string; num: number; }>) => void) | undefined): Subscription', gave the following error.
    Type '(value: {    name: string;    answer: number;}) => void' is not assignable to type '(value: QuestionAnswer<{ str: string; num: number; }>) => void'.
      Types of parameters 'value' and 'value' are incompatible.
        Type 'QuestionAnswer<{ str: string; num: number; }>' is not assignable to type '{ name: string; answer: number; }'.
          Type '{ name: "str"; answer: string; }' is not assignable to type '{ name: string; answer: number; }'.
            Types of property 'answer' are incompatible.
              Type 'string' is not assignable to type 'number'.
  Overload 2 of 2, '(next?: ((value: QuestionAnswer<{ str: string; num: number; }>) => void) | null | undefined, error?: ((error: any) => void) | null | undefined, complete?: (() => void) | null | undefined): Subscription', gave the following error.
    Argument of type '{ next: (value: {    name: string;    answer: number;}) => void; }' is not assignable to parameter of type '(value: QuestionAnswer<{ str: string; num: number; }>) => void'.
      Object literal may only specify known properties, and 'next' does not exist in type '(value: QuestionAnswer<{ str: string; num: number; }>) => void'.
ERROR: 263:9  expect  Compile error in typescript@5.0 but not in typescript@5.1.
Fix with a comment '// Minimum TypeScript Version: 5.1' just under the header.
Unused '@ts-expect-error' directive.

mjml

/home/runner/work/DefinitelyTyped/DefinitelyTyped/types/mjml/index.d.ts
Error:   8:8  error  The module mjml-core uses `export = `. Import with `import mjml2html = require(mjml-core)`  @definitelytyped/no-import-default-of-export-equals

react-clipboardjs-copy

Error: /home/runner/work/DefinitelyTyped/DefinitelyTyped/types/react-clipboardjs-copy/react-clipboardjs-copy-tests.tsx:6:10
ERROR: 6:10  expect  TypeScript@5.3 compile error:
No overload matches this call.
  Overload 1 of 2, '(props: Props | Readonly<Props>): ReactClipboard', gave the following error.
    Type '{ children: never[]; text: string; target: string; action: string; selection: false; onSuccess: () => void; onError: () => void; options: { text: string; container: Element; target: () => void; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactClipboard> & Readonly<Props>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactClipboard> & Readonly<Props>'.
  Overload 2 of 2, '(props: Props, context: any): ReactClipboard', gave the following error.
    Type '{ children: never[]; text: string; target: string; action: string; selection: false; onSuccess: () => void; onError: () => void; options: { text: string; container: Element; target: () => void; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactClipboard> & Readonly<Props>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactClipboard> & Readonly<Props>'.

react-map-gl

ERROR: 126:26  expect  TypeScript@5.3 compile error: 
No overload matches this call.
  Overload 1 of 2, '(props: LayerProps | Readonly<LayerProps>): Layer', gave the following error.
    Type '{ children: never[]; type: string; paint: { "circle-radius": number; "circle-color": string; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Layer> & Readonly<LayerProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Layer> & Readonly<LayerProps>'.
  Overload 2 of 2, '(props: LayerProps, context: any): Layer', gave the following error.
    Type '{ children: never[]; type: string; paint: { "circle-radius": number; "circle-color": string; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Layer> & Readonly<LayerProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Layer> & Readonly<LayerProps>'.
ERROR: 142:26  expect  TypeScript@5.3 compile error: 
No overload matches this call.
  Overload 1 of 2, '(props: LayerProps | Readonly<LayerProps>): Layer', gave the following error.
    Type '{ children: never[]; id: string; type: string; source: string; paint: {}; minzoom: number; maxzoom: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Layer> & Readonly<LayerProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Layer> & Readonly<LayerProps>'.
  Overload 2 of 2, '(props: LayerProps, context: any): Layer', gave the following error.
    Type '{ children: never[]; id: string; type: string; source: string; paint: {}; minzoom: number; maxzoom: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Layer> & Readonly<LayerProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Layer> & Readonly<LayerProps>'.

react-native-awesome-card-io

react-native-awesome-card-io
Error: /home/runner/work/DefinitelyTyped/DefinitelyTyped/types/react-native-awesome-card-io/react-native-awesome-card-io-tests.tsx:29:14
ERROR: 29:14  expect  TypeScript@5.3 compile error: 
No overload matches this call.
  Overload 1 of 2, '(props: CardIOViewProps | Readonly<CardIOViewProps>): CardIOView', gave the following error.
    Type '{ children: never[]; style: { flex: number; }; didScanCard: (card: CardDetails) => void; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<CardIOView> & Readonly<CardIOViewProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<CardIOView> & Readonly<CardIOViewProps>'.
  Overload 2 of 2, '(props: CardIOViewProps, context: any): CardIOView', gave the following error.
    Type '{ children: never[]; style: { flex: number; }; didScanCard: (card: CardDetails) => void; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<CardIOView> & Readonly<CardIOViewProps>'.
      Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<CardIOView> & Readonly<CardIOViewProps>'.

react-smooth-scrollbar

/home/runner/work/DefinitelyTyped/DefinitelyTyped/types/react-smooth-scrollbar/index.d.ts
Error:   8:8  error  The module smooth-scrollbar uses `export = `. Import with `import SmoothScrollbar = require(smooth-scrollbar)`  @definitelytyped/no-import-default-of-export-equals

schwifty

ERROR: 7:29  expect  Compile error in typescript@4.8 but not in typescript@4.9.
Fix with a comment '// Minimum TypeScript Version: 4.9' just under the header.
Property 'Server' does not exist on type 'typeof import("/home/runner/work/DefinitelyTyped/DefinitelyTyped/types/schwifty/node_modules/@hapi/hapi/lib/index")'. Did you mean 'server'?

videojs-seek-buttons

/home/runner/work/DefinitelyTyped/DefinitelyTyped/types/videojs-seek-buttons/index.d.ts
Error:   5:8  error  The module video.js uses `export = `. Import with `import videojs = require(video.js)`  @definitelytyped/no-import-default-of-export-equals

wordpress__components-tests.tsx

Error: /home/runner/work/DefinitelyTyped/DefinitelyTyped/types/wordpress__components/wordpress__components-tests.tsx:575:2
ERROR: 575:2  expect  TypeScript@5.3 compile error:
Type '{ children: never[]; className: string; notices: { id: string; content: string; actions: { label: string; url: string; }[]; }[]; }' is not assignable to type 'IntrinsicAttributes & Props'.
  Property 'children' does not exist on type 'IntrinsicAttributes & Props'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment