I'm developing in nuxt + typescript, so I got an error that says to install a type definition file (details are as follows).
Could not find a declaration file for module 'codemirror'.
'/path/to/node_modules/codemirror/lib/codemirror.js' implicitly has an 'any' type.
Try `npm install @types/codemirror` if it exists or add a new declaration (.d.ts) file containing `declare module 'codemirror';`
> 1 | import { Editor as CmEditor, Doc as CmDoc, Token as CmToken, Position as CmPosition, EditorConfiguration as CmEditorConfiguration } from "codemirror";
Following the error message, yarn add @types/codemirror was executed, replacing the npm command with yarn.
Some errors have disappeared, but there is one error that I can't seem to fix. That error is shown in the opening paragraph of this issue.
my proposal:
On the repository of @types/codemirror, there was an MERGE update about a month ago that changed LintOption to LintStateOptions | Linter | AsyncLinter. Therefore, I think Yasqe (and Yasr) should follow this change.
ERROR in /path/to/node_modules/@triply/yasqe/build/ts/src/index.d.ts(156,47):
I use
Yarn
and ran the commandyarn add @triply/yasgui
according to the documentation you provided.I'm developing in
nuxt
+typescript
, so I got an error that says to install a type definition file (details are as follows).Following the error message,
yarn add @types/codemirror
was executed, replacing thenpm
command withyarn
.Some errors have disappeared, but there is one error that I can't seem to fix. That error is shown in the opening paragraph of this issue.
my proposal:
On the repository of
@types/codemirror
, there was an MERGE update about a month ago that changedLintOption
toLintStateOptions | Linter | AsyncLinter
. Therefore, I thinkYasqe
(andYasr
) should follow this change.cf. 🤖 Merge PR #45097 [codemirror] Add additional lint options by @youngbob · DefinitelyTyped/DefinitelyTyped@e6ef022
After build, the relevant part of
index.d.ts
will be changed as follows.