diff --git a/README.es.md b/README.es.md index d9a995d1299ffd..b2fa6ae5914f73 100644 --- a/README.es.md +++ b/README.es.md @@ -289,7 +289,7 @@ La `master` branch es automáticamente publicada en el alcance de los `@types` e #### He enviado un pull request. ¿Cuánto tardará en ser merged? -Esto depende, pero la mayoría de los pull requests serán merged en alrededor de una semana. PRs que hayan sido aprobados por un autor listado en el encabezado de las definiciones usualmente son merged más rápidamente; PRs para nuevas definiciones tomarán más tiempo ya que requieren más revisiones de los mantenedores. Cada PR es revisado por un miembro de TypeScript o Definitely Typed antes de ser merged, por favor sé paciente debido a que factores humanos pueden causar retrasos. Revisa el [New Pull Request Status Board](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5) para ver el progreso mientras los mantenedores trabajan en los PRs abiertos. +Esto depende, pero la mayoría de los pull requests serán merged en alrededor de una semana. PRs que hayan sido aprobados por un autor listado en el encabezado de las definiciones usualmente son merged más rápidamente; PRs para nuevas definiciones tomarán más tiempo ya que requieren más revisiones de los mantenedores. Cada PR es revisado por un miembro de TypeScript o Definitely Typed antes de ser merged, por favor sé paciente debido a que factores humanos pueden causar retrasos. Revisa el [Pull Request Status Board](https://github.com/orgs/DefinitelyTyped/projects/1) para ver el progreso mientras los mantenedores trabajan en los PRs abiertos. #### Mi PR ha sido merged; ¿cuándo será actualizado el paquete de `@types` npm? diff --git a/README.fr.md b/README.fr.md index f3c182ee7bbb32..bd511172749c99 100644 --- a/README.fr.md +++ b/README.fr.md @@ -425,7 +425,7 @@ En gros : > Les PRs qui ne modifient que les types d'un module, et qui ont des changements de tests correspondants seront fusionnés beaucoup plus rapidement. -Les PRs qui ont été approuvés par un auteur listé dans l'en-tête de la définition sont généralement fusionnés plus rapidement ; les PRs pour de nouvelles définitions prendront plus de temps car ils nécessitent plus de révision de la part des mainteneurs. Chaque PR est révisé par un membre de l'équipe TypeScript ou Definitely Typed avant d'être fusionné, donc soyez patient car des facteurs humains peuvent causer des retards. Consultez le [New Pull Request Status Board](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5) pour voir les progrès réalisés par les mainteneurs sur les PRs ouverts. +Les PRs qui ont été approuvés par un auteur listé dans l'en-tête de la définition sont généralement fusionnés plus rapidement ; les PRs pour de nouvelles définitions prendront plus de temps car ils nécessitent plus de révision de la part des mainteneurs. Chaque PR est révisé par un membre de l'équipe TypeScript ou Definitely Typed avant d'être fusionné, donc soyez patient car des facteurs humains peuvent causer des retards. Consultez le [Pull Request Status Board](https://github.com/orgs/DefinitelyTyped/projects/1) pour voir les progrès réalisés par les mainteneurs sur les PRs ouverts. #### J'aimerais apporter une modification à un projet très populaire, pourquoi sont-ils traités différemment ? diff --git a/README.it.md b/README.it.md index d59665bbfe56d6..e749ffb27f94ca 100644 --- a/README.it.md +++ b/README.it.md @@ -392,7 +392,7 @@ Quindi dipende, anche se la maggior parte dei merge avvengono nell'arco di una s > Le pull request che cambiano solo i tipi di un modulo e che hanno i test corrispondenti vengono vengono accettati più velocemente -Alle pull request che sono state approvate da un'autore presente nella lista dei proprietari vengono di solito fatti i merge più rapidamente; le pull request che introducono nuove definizioni ci mettono più tempo in quanto hanno bisogno di più controlli da parte dei mantenitori. Ogni pull request viene controllata da un membro di TypeScript o Definitely Type prima di ottenere un merge, quindi abbi pazienza in quanto fattori umani possono causare ritardi. Leggi la [New Pull Request Status Board](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5) per vedere a che punto sono i mantenitori nel controllare le pull request. +Alle pull request che sono state approvate da un'autore presente nella lista dei proprietari vengono di solito fatti i merge più rapidamente; le pull request che introducono nuove definizioni ci mettono più tempo in quanto hanno bisogno di più controlli da parte dei mantenitori. Ogni pull request viene controllata da un membro di TypeScript o Definitely Type prima di ottenere un merge, quindi abbi pazienza in quanto fattori umani possono causare ritardi. Leggi la [Pull Request Status Board](https://github.com/orgs/DefinitelyTyped/projects/1) per vedere a che punto sono i mantenitori nel controllare le pull request. #### La mia pull request ha ottenuto un merge; quand'è che il package `@types` verra aggiornato su npm? diff --git a/README.ja.md b/README.ja.md index e612eb87631927..54912b6d6fa540 100644 --- a/README.ja.md +++ b/README.ja.md @@ -412,7 +412,7 @@ Definitely TypedはGitHubで最もアクティブなリポジトリの1つです > モジュールの型定義のみの変更で、対応するテストもきちんと変更されている PR は早くマージされる -通例、型定義ファイルのヘッダーに載っている著者が承認した PR はより早くマージされます。新しい型定義の PR は、 DefinitelyTyped のメンテナーからのレビューも必要になるので時間がかかります。各 PR は TypeScript や DefinitelyTyped のチームメンバーがマージ前にレビューします。人為的要因で遅れが発生する場合があるので、しばらくお待ちください。メンテナーがオープンな PR を処理している間は、 [New Pull Request Status Board](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5) で進捗を確認できます。 +通例、型定義ファイルのヘッダーに載っている著者が承認した PR はより早くマージされます。新しい型定義の PR は、 DefinitelyTyped のメンテナーからのレビューも必要になるので時間がかかります。各 PR は TypeScript や DefinitelyTyped のチームメンバーがマージ前にレビューします。人為的要因で遅れが発生する場合があるので、しばらくお待ちください。メンテナーがオープンな PR を処理している間は、 [Pull Request Status Board](https://github.com/orgs/DefinitelyTyped/projects/1) で進捗を確認できます。 #### 非常に人気のあるプロジェクトへの変更を提出したい場合、なぜ異なる扱いを受けるのですか? diff --git a/README.ko.md b/README.ko.md index b194c5a82abb84..2c7120f21f1570 100644 --- a/README.ko.md +++ b/README.ko.md @@ -322,7 +322,7 @@ Once a week the Definition Owners are synced to the file [.github/CODEOWNERS](ht #### 풀 리퀘스트(Pull request)를 제출했습니다. 이게 합쳐질 때까지 얼마나 걸리나요? -상황에 따라 다르지만, 대부분의 풀 리퀘스트(Pull request)들은 일주일 안에 합쳐집니다. 머릿주석에 있는 저자 중 한명에 의해 승인된 풀 리퀘스트(Pull request)는 보통 더 빨리 합쳐집니다. 새로운 패키지에 대한 풀 리퀘스트(Pull request)는 관리자의 세세한 코드 리뷰를 필요로 하기 때문에 더 오래 걸리는 경우가 많습니다. 각 PR 들은 합쳐지기 전에 TypeScript or Definitely Typed 팀 구성원의 코드 리뷰를 받아야 하며, 이는 사람이 하는 일이기 때문에 느려질 수도 있으니 양해를 바랍니다. [풀 리퀘스트 번다운 보드(New Pull Request Status Board)](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5)에서 열린 풀 리퀘스트에 대한 관리자들의 진행도를 확인하실 수 있습니다. +상황에 따라 다르지만, 대부분의 풀 리퀘스트(Pull request)들은 일주일 안에 합쳐집니다. 머릿주석에 있는 저자 중 한명에 의해 승인된 풀 리퀘스트(Pull request)는 보통 더 빨리 합쳐집니다. 새로운 패키지에 대한 풀 리퀘스트(Pull request)는 관리자의 세세한 코드 리뷰를 필요로 하기 때문에 더 오래 걸리는 경우가 많습니다. 각 PR 들은 합쳐지기 전에 TypeScript or Definitely Typed 팀 구성원의 코드 리뷰를 받아야 하며, 이는 사람이 하는 일이기 때문에 느려질 수도 있으니 양해를 바랍니다. [풀 리퀘스트 번다운 보드(Pull Request Status Board)](https://github.com/orgs/DefinitelyTyped/projects/1)에서 열린 풀 리퀘스트에 대한 관리자들의 진행도를 확인하실 수 있습니다. #### 내 풀 리퀘스트(Pull request)는 합쳐졌습니다. 언제 npm 에 `@types` 패키지가 갱신되나요? diff --git a/README.md b/README.md index f44fdb37abe2f0..e99fc246964fa1 100644 --- a/README.md +++ b/README.md @@ -578,7 +578,7 @@ Roughly: > PRs which only change the types of a module and have corresponding tests changes will be merged much faster -PRs that have been approved by an owner listed in the definition's `package.json` are usually merged more quickly; PRs for new definitions will take more time as they require more review from maintainers. Each PR is reviewed by a TypeScript or Definitely Typed team member before being merged, so please be patient as human factors may cause delays. Check the [New Pull Request Status Board](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5) to see progress as maintainers work through the open PRs. +PRs that have been approved by an owner listed in the definition's `package.json` are usually merged more quickly; PRs for new definitions will take more time as they require more review from maintainers. Each PR is reviewed by a TypeScript or Definitely Typed team member before being merged, so please be patient as human factors may cause delays. Check the [Pull Request Status Board](https://github.com/orgs/DefinitelyTyped/projects/1) to see progress as maintainers work through the open PRs. #### I'd like to submit a change to a very popular project, why are they treated differently? diff --git a/README.pt.md b/README.pt.md index 88288f608d0fbf..3ea9d72f94bc52 100644 --- a/README.pt.md +++ b/README.pt.md @@ -345,7 +345,7 @@ Superficialmente: > PRs que alteram apenas os tipos de um módulo, e têm mudanças de testes correspondentes sofrerão merges muito mais rapidamente. -PRs que forem aprovadas por um autor listado no cabeçalho da definição geralmente sofrem merge mais rápido; PRs para novas definições levarão mais tempo para serem aprovadas, uma vez que requerem mais revisão dos mantenedores. Cada PR é revisada por um membro do time do TypeScript ou Definitely Typed antes de sofrer merge, então por favor, seja paciente, pois fatores humanos podem causar alguns atrasos. Verifique o [Painel de Status de Novas Pull Requests](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5) para checar o progresso enquanto os mantenedores revisam as PRs abertas. +PRs que forem aprovadas por um autor listado no cabeçalho da definição geralmente sofrem merge mais rápido; PRs para novas definições levarão mais tempo para serem aprovadas, uma vez que requerem mais revisão dos mantenedores. Cada PR é revisada por um membro do time do TypeScript ou Definitely Typed antes de sofrer merge, então por favor, seja paciente, pois fatores humanos podem causar alguns atrasos. Verifique o [Painel de Status de Pull Requests](https://github.com/orgs/DefinitelyTyped/projects/1) para checar o progresso enquanto os mantenedores revisam as PRs abertas. #### Minha PR já sofreu merge; Quando é que o pacote `@types` no npm será atualizado? diff --git a/README.ru.md b/README.ru.md index 11c12fa65c345d..8822bf6d51cf60 100644 --- a/README.ru.md +++ b/README.ru.md @@ -321,7 +321,7 @@ Once a week the Definition Owners are synced to the file [.github/CODEOWNERS](ht #### Я отправил PR. Когда он сольется? -Это зависит, но большинство запросов на получение данных будут объединены в течение недели. PR, утвержденные автором, указанным в заголовке определения, обычно объединяются быстрее; PR для новых определений займет больше времени, так как они требуют большего количества проверок от сопровождающих. Каждый PR проверяется членом команды TypeScript или Definitely Typed перед объединением, поэтому будьте терпеливы, так как человеческий фактор может вызвать задержки. Посмотрите на [New Pull Request Status Board](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5) чтобы увидеть, как сопровождающие работают через открытые PR. +Это зависит, но большинство запросов на получение данных будут объединены в течение недели. PR, утвержденные автором, указанным в заголовке определения, обычно объединяются быстрее; PR для новых определений займет больше времени, так как они требуют большего количества проверок от сопровождающих. Каждый PR проверяется членом команды TypeScript или Definitely Typed перед объединением, поэтому будьте терпеливы, так как человеческий фактор может вызвать задержки. Посмотрите на [Pull Request Status Board](https://github.com/orgs/DefinitelyTyped/projects/1) чтобы увидеть, как сопровождающие работают через открытые PR. #### Мой PR слит; когда будет обновлен пакет `@types` npm? diff --git a/README.zh-Hans.md b/README.zh-Hans.md index 952160a905e2f5..3fe80ace7d357c 100644 --- a/README.zh-Hans.md +++ b/README.zh-Hans.md @@ -457,7 +457,7 @@ Definitely Typed 是 GitHub 上最活跃的软件源之一。你可能想知道 > 如果 PR 仅仅更改了模块中的类型,并且包含了相应的测试,合并过程会大大加快。 -被类型定义所有者(在定义文件的标头列明)批准的 PR 通常合并得更快;提交新类型定义的 PR 需要更多时间,因为它们需要维护人员花更多的时间审核。每一个 PR 在合并之前都会由 TypeScript 或 Definitely Typed 的团队成员进行审核,所以请耐心等待,因为人为因素可能导致延迟。通过查看 [新拉取请求状态板](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5),可以看到维护人员在开启的 PR 上的工作进度。 +被类型定义所有者(在定义文件的标头列明)批准的 PR 通常合并得更快;提交新类型定义的 PR 需要更多时间,因为它们需要维护人员花更多的时间审核。每一个 PR 在合并之前都会由 TypeScript 或 Definitely Typed 的团队成员进行审核,所以请耐心等待,因为人为因素可能导致延迟。通过查看 [新拉取请求状态板](https://github.com/orgs/DefinitelyTyped/projects/1),可以看到维护人员在开启的 PR 上的工作进度。 #### 我想给流行项目提交更改,为什么它们受到了特殊对待? diff --git a/attw.json b/attw.json index 565893df96b706..aa59897833d636 100644 --- a/attw.json +++ b/attw.json @@ -1036,7 +1036,6 @@ "ix.js", "jackrabbit", "jake", - "jasmine-enzyme", "jasmine-jquery", "jasmine", "jasmine/v1", diff --git a/notNeededPackages.json b/notNeededPackages.json index 48348ec2b0d434..15894450802398 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -2497,6 +2497,10 @@ "libraryName": "interactjs", "asOfVersion": "1.3.0" }, + "intercom-client": { + "libraryName": "intercom-client", + "asOfVersion": "3.0.0" + }, "interface-datastore": { "libraryName": "interface-datastore", "asOfVersion": "3.0.0" @@ -5383,6 +5387,10 @@ "libraryName": "reflect-metadata", "asOfVersion": "0.1.0" }, + "refractor": { + "libraryName": "refractor", + "asOfVersion": "4.0.0" + }, "rehype-react": { "libraryName": "rehype-react", "asOfVersion": "6.0.0" @@ -5623,6 +5631,10 @@ "libraryName": "serialize-error", "asOfVersion": "4.0.0" }, + "serialport": { + "libraryName": "serialport", + "asOfVersion": "10.2.0" + }, "sharp": { "libraryName": "sharp", "asOfVersion": "0.32.0" diff --git a/types/adm-zip/package.json b/types/adm-zip/package.json index 80404d8e719a9b..c5ac88d9b77935 100644 --- a/types/adm-zip/package.json +++ b/types/adm-zip/package.json @@ -24,10 +24,6 @@ "name": "BendingBender", "githubUsername": "BendingBender" }, - { - "name": "Matthew Sainsbury", - "githubUsername": "mattsains" - }, { "name": "Lei Nelissen", "githubUsername": "LeiNelissen" diff --git a/types/dom-chromium-ai/dom-chromium-ai-tests.ts b/types/dom-chromium-ai/dom-chromium-ai-tests.ts index 0583ee4c69f358..ba2277af8071a2 100644 --- a/types/dom-chromium-ai/dom-chromium-ai-tests.ts +++ b/types/dom-chromium-ai/dom-chromium-ai-tests.ts @@ -2,19 +2,19 @@ async function topLevel() { // Language Model // Negative tests - await window.ai.languageModel.create({ + await self.ai.languageModel.create({ systemPrompt: "foo", // @ts-expect-error - System prompt cannot be part of the array if systemPrompt is specified. initialPrompts: [{ role: "system" }], }); - await window.ai.languageModel.create({ + await self.ai.languageModel.create({ // @ts-expect-error - System prompt must be first element of the initialPrompt array. initialPrompts: [{ role: "user" }, { role: "system" }], }); // Positive tests // System prompt in create options - const languageModel1 = await window.ai.languageModel.create({ + const languageModel1 = await self.ai.languageModel.create({ topK: 1, temperature: 0, signal: (new AbortController()).signal, @@ -28,7 +28,7 @@ async function topLevel() { }); // System prompt in initial prompts - const languageModel2 = await window.ai.languageModel.create({ + const languageModel2 = await self.ai.languageModel.create({ initialPrompts: [ { role: "system", content: "foo" }, { role: "assistant", content: "foo" }, @@ -37,7 +37,7 @@ async function topLevel() { }); console.log(languageModel2); - const languageModelCapabilities = await window.ai.languageModel.capabilities(); + const languageModelCapabilities = await self.ai.languageModel.capabilities(); console.log( languageModelCapabilities.available, languageModelCapabilities.defaultTopK, @@ -107,7 +107,7 @@ async function topLevel() { // Summarizer - const summarizer = await window.ai.summarizer.create({ + const summarizer = await self.ai.summarizer.create({ length: "short", format: "plain-text", type: "tl;dr", @@ -120,7 +120,7 @@ async function topLevel() { }, }); - const summarizerCapabilities = await window.ai.summarizer.capabilities(); + const summarizerCapabilities = await self.ai.summarizer.capabilities(); console.log( summarizerCapabilities.available, summarizerCapabilities.supportsType("teaser"), @@ -145,7 +145,7 @@ async function topLevel() { // Writer - const writer = await window.ai.writer.create({ + const writer = await self.ai.writer.create({ tone: "casual", format: "plain-text", length: "long", @@ -158,7 +158,7 @@ async function topLevel() { }, }); - const writerCapabilities = await window.ai.writer.capabilities(); + const writerCapabilities = await self.ai.writer.capabilities(); console.log( writerCapabilities.available, writerCapabilities.supportsTone("casual"), @@ -180,7 +180,7 @@ async function topLevel() { // Rewriter - const rewriter = await window.ai.rewriter.create({ + const rewriter = await self.ai.rewriter.create({ tone: "as-is", format: "plain-text", length: "as-is", @@ -193,7 +193,7 @@ async function topLevel() { }, }); - const rewriterCapabilities = await window.ai.rewriter.capabilities(); + const rewriterCapabilities = await self.ai.rewriter.capabilities(); console.log( rewriterCapabilities.available, rewriterCapabilities.supportsTone("more-casual"), @@ -218,7 +218,7 @@ async function topLevel() { // Translator - const translator = await window.ai.translator.create({ + const translator = await self.ai.translator.create({ sourceLanguage: "de", targetLanguage: "en", signal: (new AbortController()).signal, @@ -234,7 +234,7 @@ async function topLevel() { translator.targetLanguage, ); - const translatorCapabilities = await window.ai.translator.capabilities(); + const translatorCapabilities = await self.ai.translator.capabilities(); console.log( translatorCapabilities.available, translatorCapabilities.languagePairAvailable("de", "en"), @@ -255,7 +255,7 @@ async function topLevel() { // Language detector - const languageDetector = await window.ai.languageDetector.create({ + const languageDetector = await self.ai.languageDetector.create({ signal: (new AbortController()).signal, monitor(m: AICreateMonitor) { m.addEventListener("downloadprogress", (e) => { @@ -264,7 +264,7 @@ async function topLevel() { }, }); - const languageDetectorCapabilities = await window.ai.languageDetector.capabilities(); + const languageDetectorCapabilities = await self.ai.languageDetector.capabilities(); console.log( languageDetectorCapabilities.available, languageDetectorCapabilities.languageAvailable("de"), diff --git a/types/ineum/index.d.ts b/types/ineum/index.d.ts index 4398614ba1a423..7224e793cb9273 100644 --- a/types/ineum/index.d.ts +++ b/types/ineum/index.d.ts @@ -39,7 +39,7 @@ declare function ineum( ): void; declare function ineum( command: "reportEvent", - name: string, + eventName: string, opts?: { duration?: number | undefined; timestamp?: number | undefined; @@ -49,6 +49,7 @@ declare function ineum( meta?: { [key: string]: string | number | boolean; } | undefined; + customMetric?: number | undefined; }, ): void; diff --git a/types/ineum/ineum-tests.ts b/types/ineum/ineum-tests.ts index f9b771ad48a51d..5d80c04abdb2fb 100644 --- a/types/ineum/ineum-tests.ts +++ b/types/ineum/ineum-tests.ts @@ -74,6 +74,7 @@ ineum("reportEvent", "log", { meta: { itemsInCart: 5, }, + customMetric: 123.2342, }); // $ExpectType void diff --git a/types/intercom-client/.eslintrc.json b/types/intercom-client/.eslintrc.json deleted file mode 100644 index 5805df8e2413ed..00000000000000 --- a/types/intercom-client/.eslintrc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rules": { - "@definitelytyped/strict-export-declare-modifiers": "off" - } -} diff --git a/types/intercom-client/.npmignore b/types/intercom-client/.npmignore deleted file mode 100644 index 93e307400a5456..00000000000000 --- a/types/intercom-client/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts diff --git a/types/intercom-client/Company.d.ts b/types/intercom-client/Company.d.ts deleted file mode 100644 index 39ac988a62f466..00000000000000 --- a/types/intercom-client/Company.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -export type CompanyIdentifier = { id: string } | { company_id: string }; - -export interface Company { - readonly "type": "company"; - readonly "id": string; - readonly app_id?: string | undefined; - company_id?: string | undefined; - plan?: string | { type: string; id: string; name: string } | undefined; - remote_created_at?: number | undefined; - name?: string | undefined; - readonly "updated_at": number; - readonly "created_at": number; - size?: number | undefined; - website?: string | undefined; - industry?: string | undefined; - monthly_spend?: number | undefined; - session_count?: number | undefined; - user_count?: number | undefined; - custom_attributes?: { - [key: string]: any; - } | undefined; -} - -export interface List { - "type": "company.list"; - "total_count": number; - "companies": Array; - "pages": { "next"?: string | undefined; "page": number; "per_page": number; "total_pages": number }; -} diff --git a/types/intercom-client/Event.d.ts b/types/intercom-client/Event.d.ts deleted file mode 100644 index 06022329d27462..00000000000000 --- a/types/intercom-client/Event.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -interface IntercomUserIdId { - intercom_user_id: string; -} -interface UserIdId { - user_id: string; -} -interface EmailIdId { - email: string; -} - -export type EventIdentifier = IntercomUserIdId | UserIdId | EmailIdId; - -export interface Event extends Partial, Partial, Partial { - readonly id: string; - created_at: number; - event_name: string; - metadata?: any; -} - -export type ListParam = EventIdentifier & { - type: "user"; - per_page?: number | undefined; // max 100 -}; - -export interface List { - "type": "event.list"; - "total_count": number; - "events": (Event)[]; - "pages": { "next"?: string | undefined; "page": number; "per_page": number; "total_pages": number }; -} diff --git a/types/intercom-client/IntercomError.d.ts b/types/intercom-client/IntercomError.d.ts deleted file mode 100644 index 552ff1463b68d2..00000000000000 --- a/types/intercom-client/IntercomError.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export interface IntercomError { - statusCode: number; - body: { - type: "error.list"; - request_id: string; - errors: Array<{ - code: string; // "400", - message: string; - }>; - }; - headers: { status: string } & { [k: string]: string }; -} diff --git a/types/intercom-client/Lead.d.ts b/types/intercom-client/Lead.d.ts deleted file mode 100644 index e6860dfdd72454..00000000000000 --- a/types/intercom-client/Lead.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Company } from "./Company"; -import { Avatar, LocationData, Segment, SocialProfile, Tag } from "./User"; - -export interface LeadIdIdentifier { - id: string; -} -export type LeadIdentifier = LeadIdIdentifier | { "user_id": string }; - -export interface Lead { - "type": "contact"; - readonly "id": string; - "role": "user" | "lead"; - "user_id": string | null; - "email": string | null; - "phone": string | null; - "name": string | null; - readonly "updated_at": number; - "last_seen_ip": string | null; - "unsubscribed_from_emails": boolean; - "last_request_at": number | null; - readonly "created_at": number; - "user_agent_data": string | null; - "custom_attributes": { - [key: string]: any; - }; - "avatar": Avatar; - "location_data": LocationData | {}; - "social_profiles": { - "type": "social_profile.list"; - "social_profiles": SocialProfile[]; - }; - "companies": { - "type": "company.list"; - "companies": Company[]; - }; - "segments": { - "type": "segment.list"; - "segments": Segment[]; - }; - "tags": { - "type": "tag.list"; - "tags": Tag[]; - }; - "referrer": string | null; -} - -export interface List { - "type": "user.list"; - "total_count": number; - "contacts": Lead[]; - "pages": { "next"?: string | undefined; "page": number; "per_page": number; "total_pages": number }; -} diff --git a/types/intercom-client/Message.d.ts b/types/intercom-client/Message.d.ts deleted file mode 100644 index d90db0c5823e5a..00000000000000 --- a/types/intercom-client/Message.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -interface Avatar { - image_url: string; -} - -interface FromToObject { - id: string; - type: string; -} - -interface Owner { - avatar: Avatar; - away_mode_enabled: boolean; - away_mode_reassign: boolean; - email: string; - id: string; - name: string; - type: string; -} - -interface MessageModel { - body: string; - message_type: string; - subject?: string | undefined; -} - -export interface CreateMessage extends MessageModel { - from: FromToObject; - template?: string | undefined; - to: FromToObject; -} - -export interface Message extends MessageModel { - created_at: number; - id: string; - owner: Owner; - type: string; -} diff --git a/types/intercom-client/Scroll.d.ts b/types/intercom-client/Scroll.d.ts deleted file mode 100644 index 431527ddf5b829..00000000000000 --- a/types/intercom-client/Scroll.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare class Scroll { -} diff --git a/types/intercom-client/Tag.d.ts b/types/intercom-client/Tag.d.ts deleted file mode 100644 index cb273f9ea4babd..00000000000000 --- a/types/intercom-client/Tag.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { UserIdentifier } from "./User"; - -export interface TagIdentifier { - id: string; -} - -export interface Tag extends Partial { - readonly type: "tag"; - readonly id: string; - name: string; -} - -export interface List { - "type": "tag.list"; - "total_count": number; - "tags": (Tag)[]; - "pages": { "next"?: string | undefined; "page": number; "per_page": number; "total_pages": number }; -} - -interface TagUsers { - name: string; - users: UserIdentifier[]; -} - -interface TagCompanies { - name: string; - users: Array<{ id: string }>; -} - -type TagOper = TagCompanies | TagUsers; diff --git a/types/intercom-client/User.d.ts b/types/intercom-client/User.d.ts deleted file mode 100644 index 531255822b2aa6..00000000000000 --- a/types/intercom-client/User.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { Company } from "./Company"; - -export interface UserEmailIdentifier { - email: string; -} -export type UserIdIdentifier = { id: string } | { user_id: string }; -export type UserIdentifier = UserIdIdentifier | UserEmailIdentifier; - -export interface Avatar { - type: "avatar"; - image_url: string | null; -} - -export interface SocialProfile { - name: "Twitter"; - readonly id: string | null; - username: string | null; - url: string | null; -} - -export interface Segment { - readonly id: string; -} - -export interface Tag { - readonly id: string; -} - -export interface LocationData { - type: "location_data"; - city_name: string | null; - continent_code: string | null; - country_code: string | null; - country_name: string | null; - latitude: number | null; - longitude: number | null; - postal_code: string | null; - region_name: string | null; - timezone: string | null; -} - -interface BaseUser { - type: "user" | "contact"; - readonly id: string; - user_id: string | null; - email: string | null; - app_id?: string | undefined; - phone: string | null; - name: string | null; - readonly updated_at: number; - last_seen_ip: string | null; - unsubscribed_from_emails: boolean; - last_request_at: number | null; - signed_up_at: number | null; - readonly created_at: number; - session_count: number; - user_agent_data: string | null; - pseudonym: string | null; - anonymous: boolean; - custom_attributes: { - [key: string]: any; - }; - avatar: Avatar; -} - -export interface User extends BaseUser { - location_data: LocationData | {}; - social_profiles: { - type: "social_profile.list"; - social_profiles: SocialProfile[]; - }; - companies: { - type: "company.list"; - companies: Company[]; - }; - segments: { - type: "segment.list"; - segments: Segment[]; - }; - tags: { - type: "tag.list"; - tags: Tag[]; - }; -} - -export interface CreateUpdateUser extends BaseUser { - companies: Array & { remove?: boolean | undefined }>; -} - -export interface List { - type: "user.list"; - total_count: number; - users: User[]; - pages: { next?: string | undefined; page: number; per_page: number; total_pages: number }; -} diff --git a/types/intercom-client/Visitor.d.ts b/types/intercom-client/Visitor.d.ts deleted file mode 100644 index bd76733d73d074..00000000000000 --- a/types/intercom-client/Visitor.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Company } from "./Company"; -import { Tag } from "./Tag"; -import { Avatar, LocationData, Segment, SocialProfile } from "./User"; - -export type VisitorIdentifier = { id: string } | { user_id: string }; - -export interface Visitor { - type: "visitor"; // value is 'visitor' - readonly id: string; // The Intercom defined id representing the Visitor - user_id: string | null; // Automatically generated identifier for the Visitor - name: string | null; // The name of the Visitor - avatar: Avatar; // An avatar object for the Visitor - location_data: LocationData | {}; // A Location Object relating to the Visitor - last_request_at: number | null; // The time the Lead last recorded making a request - readonly created_at: number; // The time the Visitor was added to Intercom - readonly updated_at: number; // The last time the Visitor was updated - social_profiles: SocialProfile[]; // A list of social profiles associated with the Visitor - unsubscribed_from_emails: boolean; // Whether the Visitor is unsubscribed from emails - tags: Tag[]; // A list of tags associated with the Visitor - segments: Segment[]; // A list of segments the Visitor - custom_attributes: { [key: string]: any }; // The custom attributes you have set on the Visitor -} diff --git a/types/intercom-client/index.d.ts b/types/intercom-client/index.d.ts deleted file mode 100644 index bf24efefb78125..00000000000000 --- a/types/intercom-client/index.d.ts +++ /dev/null @@ -1,217 +0,0 @@ -/// - -import { Company, CompanyIdentifier, List as CompanyList } from "./Company"; -import { Event, List as EventList, ListParam as EventListParam } from "./Event"; -import { IntercomError } from "./IntercomError"; -import { Lead, LeadIdentifier, LeadIdIdentifier, List as LeadList } from "./Lead"; -import { CreateMessage, Message } from "./Message"; -import { Scroll } from "./Scroll"; -import { List as TagList, Tag, TagIdentifier, TagOper } from "./Tag"; -import { - CreateUpdateUser, - List as UserList, - User, - UserEmailIdentifier, - UserIdentifier, - UserIdIdentifier, -} from "./User"; -import { Visitor, VisitorIdentifier } from "./Visitor"; - -import { IncomingMessage } from "http"; -import request = require("request"); - -export { IntercomError }; - -export interface IdentityVerificationOptions { - secretKey: string; - identifier: string; -} - -export const IdentityVerification: { - userHash(opts: IdentityVerificationOptions): string; -}; - -export class Client { - constructor(auth: { token: string } | { appId: string; appApiKey: string }); - constructor(username: string, password: string); - - users: Users; - companies: Companies; - tags: Tags; - events: Events; - contacts: Leads; - leads: Leads; - visitors: Visitors; - messages: Messages; - - /** - * client library also supports passing in `request` options - * Note that certain request options (such as `json`, and certain `headers` names cannot be overridden). - */ - useRequestOpts(options?: request.CoreOptions): this; - usePromises(): this; -} - -export class ApiResponse extends IncomingMessage { - body: T; -} - -export type callback = ((d: T) => void) | ((err: IntercomError, d: T) => void); - -interface BulkOperation { - create?: any; - delete?: any; -} - -export class Users { - create(user: Partial): Promise>; - create(user: Partial, cb: callback>): void; - - update(user: UserIdentifier & Partial): Promise>; - update(user: UserIdentifier & Partial, cb: callback>): void; - - find(identifier: UserIdIdentifier): Promise>; - find(identifier: UserIdIdentifier, cb: callback>): void; - find(identifier: UserEmailIdentifier): Promise>; - find(identifier: UserEmailIdentifier, cb: callback>): void; - find(identifier: UserIdentifier): Promise>; - find(identifier: UserIdentifier, cb: callback>): void; - - list(): Promise>; - list(cb: callback>): void; - - listBy(params: { tag_id?: string | undefined; segment_id?: string | undefined }): Promise>; - listBy( - params: { tag_id?: string | undefined; segment_id?: string | undefined }, - cb: callback>, - ): void; - - scroll: Scroll; - - archive(identifier: UserIdentifier): Promise>; - archive(identifier: UserIdentifier, cb: callback>): void; - - bulk(operations: BulkOperation[]): Promise>; - bulk(operations: BulkOperation[], cb: callback>): void; - - requestPermanentDeletion(id: string): Promise<{ id: number }>; - requestPermanentDeletion(id: string, cb: callback<{ id: number }>): void; - - requestPermanentDeletionByParams(identifier: UserIdentifier): Promise<{ id: number }>; - requestPermanentDeletionByParams(identifier: UserIdentifier, cb: callback<{ id: number }>): void; -} - -export class Leads { - create(lead: Partial): Promise>; - create(lead: Partial, cb: callback>): void; - - update(lead: UserIdentifier & Partial): Promise>; - update(lead: UserIdentifier & Partial, cb: callback>): void; - - list(): Promise>; - list(cb: callback>): void; - - listBy( - params: { email?: string | undefined; tag_id?: string | undefined; segment_id?: string | undefined }, - ): Promise>; - listBy( - params: { email?: string | undefined; tag_id?: string | undefined; segment_id?: string | undefined }, - cb: callback>, - ): void; - - find(identifier: LeadIdentifier): Promise>; - find(identifier: LeadIdentifier, cb: callback>): void; - - delete(identifier: LeadIdIdentifier): Promise>; - delete(identifier: LeadIdIdentifier, cb: callback>): void; - - convert(params: { contact: LeadIdentifier; user: UserIdentifier }): Promise>; - convert(params: { contact: LeadIdentifier; user: UserIdentifier }, cb: callback>): void; -} - -export class Visitors { - update(visitor: VisitorIdentifier & Partial): Promise>; - update(visitor: VisitorIdentifier & Partial, cb: callback>): void; - - find(identifier: VisitorIdentifier): Promise>; - find(identifier: VisitorIdentifier, cb: callback>): void; - - delete(id: string): Promise>; - delete(id: string, cb: callback>): void; - - convert(params: { identifier: VisitorIdentifier; type: "lead" }): Promise>; - convert(params: { identifier: VisitorIdentifier; type: "user"; user: UserIdentifier }): Promise>; - - convert( - params: { - identifier: VisitorIdentifier; - type: "lead"; - }, - cb: callback>, - ): void; - convert( - params: { - identifier: VisitorIdentifier; - type: "user"; - user: UserIdentifier; - }, - cb: callback>, - ): void; -} - -export class Companies { - create(company: CompanyIdentifier & Partial): Promise>; - create(company: CompanyIdentifier & Partial, cb: callback>): void; - - update(company: CompanyIdentifier & Partial): Promise>; - update(company: CompanyIdentifier & Partial, cb: callback>): void; - - find(identifier: CompanyIdentifier): Promise>; - find(identifier: CompanyIdentifier, cb: callback>): void; - - list(): Promise>; - list(cb: callback>): void; - - listBy(params: { tag_id?: string | undefined; segment_id?: string | undefined }): Promise>; - listBy( - params: { tag_id?: string | undefined; segment_id?: string | undefined }, - cb: callback>, - ): void; - - scroll: Scroll; - - archive(): Promise; -} - -export class Tags { - create(tag: Partial): Promise>; - create(tag: Partial, cb: callback>): void; - - tag(tagOper: TagOper): Promise>; - tag(tagOper: TagOper, cb: callback>): void; - - untag(tagOper: TagOper): Promise>; - untag(tagOper: TagOper, cb: callback>): void; - - delete(tag: TagIdentifier): Promise; - delete(tag: TagIdentifier, cb: callback): void; - - list(): Promise>; - list(cb: callback>): void; -} - -export class Events { - create(event: Partial): Promise; - create(event: Partial, cb: callback): void; - - listBy(params: EventListParam): Promise>; - listBy(params: EventListParam, cb: callback>): void; - - bulk(operations: BulkOperation[]): Promise>; - bulk(operations: BulkOperation[], cb: callback>): void; -} - -export class Messages { - create(message: Partial): Promise>; - create(message: Partial, cb: callback>): void; -} diff --git a/types/intercom-client/intercom-client-tests.ts b/types/intercom-client/intercom-client-tests.ts deleted file mode 100644 index 049e42473678ae..00000000000000 --- a/types/intercom-client/intercom-client-tests.ts +++ /dev/null @@ -1,42 +0,0 @@ -import Intercom = require("intercom-client"); -import { IdentityVerification } from "intercom-client"; - -IdentityVerification.userHash({ secretKey: "", identifier: "" }); // $ExpectType string - -const client = new Intercom.Client({ token: "my_token" }); -client.useRequestOpts({ - baseUrl: "http://local.test-server.com", - headers: { - "Intercom-Version": 2.0, - }, - forever: true, -}).usePromises(); - -// Create a lead. -client.contacts.create({ - role: "lead", - email: "email@mail.com", - name: "name", -}) - .then(() => console.log("Lead created")) - .catch(e => console.error("Error while creating lead:", e)); - -client.users.bulk([ - { - create: { - user_id: "user_id", - }, - }, -]) - .then(() => console.log("User created in bulk")) - .catch(e => console.error("Error while creating user in bulk", e)); - -client.events.bulk([ - { - create: { - event_id: "event_id", - }, - }, -]) - .then(() => console.log("Event created in bulk")) - .catch(e => console.error("Error while creating event in bulk", e)); diff --git a/types/intercom-client/package.json b/types/intercom-client/package.json deleted file mode 100644 index 9a18564af6fb83..00000000000000 --- a/types/intercom-client/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "private": true, - "name": "@types/intercom-client", - "version": "2.11.9999", - "projects": [ - "https://github.com/intercom/intercom-node" - ], - "dependencies": { - "@types/node": "*", - "@types/request": "*" - }, - "devDependencies": { - "@types/intercom-client": "workspace:." - }, - "owners": [ - { - "name": "Jinesh Shah", - "githubUsername": "jineshshah36" - }, - { - "name": "Josef Hornych", - "githubUsername": "peping" - }, - { - "name": "Chris Doe", - "githubUsername": "cdoe" - }, - { - "name": "Kroustille", - "githubUsername": "kroustille" - } - ] -} diff --git a/types/intercom-client/tsconfig.json b/types/intercom-client/tsconfig.json deleted file mode 100644 index cdb2397541d48c..00000000000000 --- a/types/intercom-client/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": true - }, - "files": [ - "index.d.ts", - "intercom-client-tests.ts" - ] -} diff --git a/types/jasmine-enzyme/index.d.ts b/types/jasmine-enzyme/index.d.ts index d46f84988019b6..5ede0779ca80d2 100644 --- a/types/jasmine-enzyme/index.d.ts +++ b/types/jasmine-enzyme/index.d.ts @@ -2,7 +2,7 @@ /// declare function jasmineEnzyme(): void; -export default jasmineEnzyme; +export = jasmineEnzyme; declare global { namespace jasmine { diff --git a/types/jasmine-reporters/jasmine-reporters-tests.ts b/types/jasmine-reporters/jasmine-reporters-tests.ts index 7493e9943619e5..1fd792569f9d5b 100644 --- a/types/jasmine-reporters/jasmine-reporters-tests.ts +++ b/types/jasmine-reporters/jasmine-reporters-tests.ts @@ -45,6 +45,7 @@ function JUnitXmlReporterSpec_js() { id: "text", description: "text", fullName: "text", + filename: "text", failedExpectations: [], deprecationWarnings: [], status: "text", diff --git a/types/jasmine/index.d.ts b/types/jasmine/index.d.ts index ba0812af5505e3..62e9afccb408a5 100644 --- a/types/jasmine/index.d.ts +++ b/types/jasmine/index.d.ts @@ -980,6 +980,11 @@ declare namespace jasmine { */ fullName: string; + /** + * The name of the file the suite was defined in. + */ + filename: string; + /** * The list of expectations that failed during execution of this spec. */ @@ -1066,7 +1071,7 @@ declare namespace jasmine { interface Spec { new(attrs: any): any; - readonly id: number; + readonly id: string; env: Env; readonly description: string; getFullName(): string; diff --git a/types/jasmine/jasmine-tests.ts b/types/jasmine/jasmine-tests.ts index d293be8cc6aab9..ecfd1f1a95058c 100644 --- a/types/jasmine/jasmine-tests.ts +++ b/types/jasmine/jasmine-tests.ts @@ -2562,6 +2562,7 @@ describe("Debug logging", function() { console.log("id", suite.id); console.log("description", suite.description); console.log("fullName", suite.fullName); + console.log("filename", suite.filename); console.log("fe", suite.failedExpectations); for (const fe of suite.failedExpectations) { diff --git a/types/jsrsasign/jsrsasign-tests.ts b/types/jsrsasign/jsrsasign-tests.ts index 63ae4ccc012cef..595ee2c23579eb 100644 --- a/types/jsrsasign/jsrsasign-tests.ts +++ b/types/jsrsasign/jsrsasign-tests.ts @@ -153,3 +153,6 @@ x509crl.getRevCertArray(); // $ExpectType RevokedCertificate[] | null x509crl.findRevCert(PEM_CERTIFICATE); x509crl.findRevCertBySN("0000"); x509crl.getParam(); + +const paramOrg = {}; +new KJUR.asn1.cms.SignedData(paramOrg); diff --git a/types/jsrsasign/modules/KJUR/asn1/cms/SignedData.d.ts b/types/jsrsasign/modules/KJUR/asn1/cms/SignedData.d.ts index 93f39ae3bcf3cf..e92400c9c908f1 100644 --- a/types/jsrsasign/modules/KJUR/asn1/cms/SignedData.d.ts +++ b/types/jsrsasign/modules/KJUR/asn1/cms/SignedData.d.ts @@ -31,7 +31,7 @@ declare namespace jsrsasign.KJUR.asn1.cms { */ class SignedData extends ASN1Object { signerInfoList: SignerInfo[]; - constructor(); + constructor(params?: object); addCertificatesByPEM(certPEM: string): void; getEncodedHex(): string; getContentInfo(): ContentInfo; diff --git a/types/node/test/v8.ts b/types/node/test/v8.ts index 561b01001b83bd..622443e92601d4 100644 --- a/types/node/test/v8.ts +++ b/types/node/test/v8.ts @@ -81,3 +81,12 @@ const a = new A(); v8.queryObjects(A); // $ExpectType number | string[] v8.queryObjects(A, { format: "count" }); // $ExpectType number v8.queryObjects(A, { format: "summary" }); // $ExpectType string[] + +v8.deserialize(Buffer.from([0])); +v8.deserialize(new Uint8Array()); +v8.deserialize(new DataView(new ArrayBuffer(1))); + +// @ts-expect-error ArrayBuffer is not a valid deserialize parameter +v8.deserialize(new ArrayBuffer(1)); +// @ts-expect-error String is not a valid deserialize parameter +v8.deserialize("Hello World!"); diff --git a/types/node/v16/test/v8.ts b/types/node/v16/test/v8.ts index 3d3b226ff38b97..608001fe967328 100644 --- a/types/node/v16/test/v8.ts +++ b/types/node/v16/test/v8.ts @@ -64,3 +64,12 @@ v8.startupSnapshot.setDeserializeMainFunction((shelf: BookShelf): void => { const name = `${book}.${lang}`; console.log(shelf.storage.get(name)); }, shelf); + +v8.deserialize(Buffer.from([0])); +v8.deserialize(new Uint8Array()); +v8.deserialize(new DataView(new ArrayBuffer(1))); + +// @ts-expect-error ArrayBuffer is not a valid deserialize parameter +v8.deserialize(new ArrayBuffer(1)); +// @ts-expect-error String is not a valid deserialize parameter +v8.deserialize("Hello World!"); diff --git a/types/node/v16/v8.d.ts b/types/node/v16/v8.d.ts index 8c51be428a7715..f81cf5451cad7b 100644 --- a/types/node/v16/v8.d.ts +++ b/types/node/v16/v8.d.ts @@ -389,7 +389,7 @@ declare module "v8" { * @since v8.0.0 * @param buffer A buffer returned by {@link serialize}. */ - function deserialize(buffer: NodeJS.TypedArray): any; + function deserialize(buffer: NodeJS.ArrayBufferView): any; /** * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple * times during the lifetime of the process. Each time the execution counter will diff --git a/types/node/v18/test/v8.ts b/types/node/v18/test/v8.ts index 68fc5d8817cbc9..3c48ab8d3a2990 100644 --- a/types/node/v18/test/v8.ts +++ b/types/node/v18/test/v8.ts @@ -72,3 +72,12 @@ v8.startupSnapshot.setDeserializeMainFunction((shelf: BookShelf): void => { const name = `${book}.${lang}`; console.log(shelf.storage.get(name)); }, shelf); + +v8.deserialize(Buffer.from([0])); +v8.deserialize(new Uint8Array()); +v8.deserialize(new DataView(new ArrayBuffer(1))); + +// @ts-expect-error ArrayBuffer is not a valid deserialize parameter +v8.deserialize(new ArrayBuffer(1)); +// @ts-expect-error String is not a valid deserialize parameter +v8.deserialize("Hello World!"); diff --git a/types/node/v18/v8.d.ts b/types/node/v18/v8.d.ts index a34a44407d0f05..9de002ca295b0f 100644 --- a/types/node/v18/v8.d.ts +++ b/types/node/v18/v8.d.ts @@ -389,7 +389,7 @@ declare module "v8" { * @since v8.0.0 * @param buffer A buffer returned by {@link serialize}. */ - function deserialize(buffer: NodeJS.TypedArray): any; + function deserialize(buffer: NodeJS.ArrayBufferView): any; /** * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple * times during the lifetime of the process. Each time the execution counter will diff --git a/types/node/v20/test/v8.ts b/types/node/v20/test/v8.ts index 561b01001b83bd..622443e92601d4 100644 --- a/types/node/v20/test/v8.ts +++ b/types/node/v20/test/v8.ts @@ -81,3 +81,12 @@ const a = new A(); v8.queryObjects(A); // $ExpectType number | string[] v8.queryObjects(A, { format: "count" }); // $ExpectType number v8.queryObjects(A, { format: "summary" }); // $ExpectType string[] + +v8.deserialize(Buffer.from([0])); +v8.deserialize(new Uint8Array()); +v8.deserialize(new DataView(new ArrayBuffer(1))); + +// @ts-expect-error ArrayBuffer is not a valid deserialize parameter +v8.deserialize(new ArrayBuffer(1)); +// @ts-expect-error String is not a valid deserialize parameter +v8.deserialize("Hello World!"); diff --git a/types/node/v20/v8.d.ts b/types/node/v20/v8.d.ts index 15b0b1675a7858..6822e88aeffdf7 100644 --- a/types/node/v20/v8.d.ts +++ b/types/node/v20/v8.d.ts @@ -445,7 +445,7 @@ declare module "v8" { * @since v8.0.0 * @param buffer A buffer returned by {@link serialize}. */ - function deserialize(buffer: NodeJS.TypedArray): any; + function deserialize(buffer: NodeJS.ArrayBufferView): any; /** * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple * times during the lifetime of the process. Each time the execution counter will diff --git a/types/node/v8.d.ts b/types/node/v8.d.ts index 040bcfafafc5db..9676a81ef2f8a4 100644 --- a/types/node/v8.d.ts +++ b/types/node/v8.d.ts @@ -445,7 +445,7 @@ declare module "v8" { * @since v8.0.0 * @param buffer A buffer returned by {@link serialize}. */ - function deserialize(buffer: NodeJS.TypedArray): any; + function deserialize(buffer: NodeJS.ArrayBufferView): any; /** * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple * times during the lifetime of the process. Each time the execution counter will diff --git a/types/protractor-beautiful-reporter/protractor-beautiful-reporter-tests.ts b/types/protractor-beautiful-reporter/protractor-beautiful-reporter-tests.ts index baf73f72649e14..7c6bfff2ad586b 100644 --- a/types/protractor-beautiful-reporter/protractor-beautiful-reporter-tests.ts +++ b/types/protractor-beautiful-reporter/protractor-beautiful-reporter-tests.ts @@ -291,6 +291,7 @@ function app_reporter_js() { pendingReason: "text", debugLogs: [], id: "text", + filename: "text", description: "text", fullName: "text", failedExpectations: [], diff --git a/types/refractor/.npmignore b/types/refractor/.npmignore deleted file mode 100644 index 93e307400a5456..00000000000000 --- a/types/refractor/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts diff --git a/types/refractor/core.d.ts b/types/refractor/core.d.ts deleted file mode 100644 index fda85c1150515d..00000000000000 --- a/types/refractor/core.d.ts +++ /dev/null @@ -1,165 +0,0 @@ -import * as Prism from "prismjs"; - -export interface RefractorSyntax { - displayName: string; - aliases: string[]; - (prism: typeof Prism): void; -} - -export namespace AST { - namespace Unist { - interface Node { - type: string; - } - - interface Parent extends Node { - children: RefractorNode[]; - } - - interface Text extends Node { - value: string; - } - } - - interface Properties { - className?: string[] | undefined; - [key: string]: any; - } - - interface Element extends Unist.Parent { - type: "element"; - tagName: string; - properties: Properties; - } - - interface Text extends Unist.Text { - type: "text"; - } -} - -export type RefractorNode = AST.Element | AST.Text; - -/** - * Register a syntax. Needed if you’re using refractor/core.js. - * - * ```ts - * import refractor = require('refractor/core') - * import markdown = require('refractor/lang/markdown') - * - * refractor.register(markdown) - * console.log(refractor.highlight('*Emphasis*', 'markdown')) - * - * // => [ { type: 'element', tagName: 'span', properties: [Object], children: [Array] } ] - * ``` - * - * @param syntax - */ -export function register(syntax: RefractorSyntax): void; - -/** - * Parse value (string) according to the language (name or alias) syntax. - * - * @returns Virtual nodes representing the highlighted value (Array.). - * - * ```ts - * import refractor = require('refractor/core') - * console.log(refractor.highlight('em { color: red }', 'css')) - * ``` - * - * Yields: - * - * ``` - * [ - * { type: 'element', - * tagName: 'span', - * properties: [Object], - * children: [Array] }, - * { type: 'text', value: ' ' }, - * // ... - * { type: 'text', value: ' red ' }, - * { type: 'element', - * tagName: 'span', - * properties: [Object], - * children: [Array] } - * ] - * ``` - */ -export function highlight(value: string, name: string): RefractorNode[]; - -/** - * Check if a language (name or alias) is registered. - * - * ```ts - * import refractor = require('refractor/core') - * import markdown = require('refractor/lang/markdown') - * - * console.log(registered('markdown')) - * - * register(markdown) - * - * console.log(registered('markdown')) - * - * // => true | false - * ``` - */ -export function registered(name: string): boolean; - -/** - * List all registered languages (names and aliases). - * - * ```ts - * import refractor = require('refractor/core') - * import markdown = require('refractor/lang/markdown') - * - * console.log(refractor.listLanguages()) - * - * refractor.register(markdown) - * - * console.log(refractor.listLanguages()) - * ``` - * - * Yields: - * - * ``` - * [ 'markup', - * 'xml', - * 'html', - * 'mathml', - * 'svg', - * 'css', - * 'clike', - * 'javascript', - * 'js' ] - * [ 'markup', - * 'xml', - * 'html', - * 'mathml', - * 'svg', - * 'css', - * 'clike', - * 'javascript', - * 'js', - * 'markdown' ] - * ``` - */ -export function listLanguages(): string[]; - -/** - * Register a new `alias` for the `name` language. - * - * ```ts - * import refractor from 'refractor/core' - * import markdown from 'refractor/lang/markdown' - * - * refractor.register(markdown) - * - * // refractor.highlight('*Emphasis*', 'mdown') - * // ^ would throw: Error: Unknown language: `mdown` is not registered - * - * refractor.alias({markdown: ['mdown', 'mkdn', 'mdwn', 'ron']}) - * refractor.highlight('*Emphasis*', 'mdown') - * // ^ Works! - * ``` - */ -export function alias(name: string, alias: string | string[]): void; -export function alias(aliases: Record): void; diff --git a/types/refractor/index.d.ts b/types/refractor/index.d.ts deleted file mode 100644 index 6d44155a3f0ced..00000000000000 --- a/types/refractor/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import refractor = require("./core"); -export = refractor; diff --git a/types/refractor/lang/abap.d.ts b/types/refractor/lang/abap.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/abap.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/abnf.d.ts b/types/refractor/lang/abnf.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/abnf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/actionscript.d.ts b/types/refractor/lang/actionscript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/actionscript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/ada.d.ts b/types/refractor/lang/ada.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/ada.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/agda.d.ts b/types/refractor/lang/agda.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/agda.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/al.d.ts b/types/refractor/lang/al.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/al.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/antlr4.d.ts b/types/refractor/lang/antlr4.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/antlr4.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/apacheconf.d.ts b/types/refractor/lang/apacheconf.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/apacheconf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/apl.d.ts b/types/refractor/lang/apl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/apl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/applescript.d.ts b/types/refractor/lang/applescript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/applescript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/aql.d.ts b/types/refractor/lang/aql.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/aql.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/arduino.d.ts b/types/refractor/lang/arduino.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/arduino.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/arff.d.ts b/types/refractor/lang/arff.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/arff.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/asciidoc.d.ts b/types/refractor/lang/asciidoc.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/asciidoc.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/asm6502.d.ts b/types/refractor/lang/asm6502.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/asm6502.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/aspnet.d.ts b/types/refractor/lang/aspnet.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/aspnet.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/autohotkey.d.ts b/types/refractor/lang/autohotkey.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/autohotkey.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/autoit.d.ts b/types/refractor/lang/autoit.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/autoit.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/bash.d.ts b/types/refractor/lang/bash.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/bash.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/basic.d.ts b/types/refractor/lang/basic.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/basic.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/batch.d.ts b/types/refractor/lang/batch.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/batch.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/bbcode.d.ts b/types/refractor/lang/bbcode.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/bbcode.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/bison.d.ts b/types/refractor/lang/bison.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/bison.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/bnf.d.ts b/types/refractor/lang/bnf.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/bnf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/brainfuck.d.ts b/types/refractor/lang/brainfuck.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/brainfuck.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/brightscript.d.ts b/types/refractor/lang/brightscript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/brightscript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/bro.d.ts b/types/refractor/lang/bro.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/bro.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/c.d.ts b/types/refractor/lang/c.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/c.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/cil.d.ts b/types/refractor/lang/cil.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/cil.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/clike.d.ts b/types/refractor/lang/clike.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/clike.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/clojure.d.ts b/types/refractor/lang/clojure.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/clojure.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/cmake.d.ts b/types/refractor/lang/cmake.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/cmake.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/coffeescript.d.ts b/types/refractor/lang/coffeescript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/coffeescript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/concurnas.d.ts b/types/refractor/lang/concurnas.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/concurnas.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/cpp.d.ts b/types/refractor/lang/cpp.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/cpp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/crystal.d.ts b/types/refractor/lang/crystal.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/crystal.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/csharp.d.ts b/types/refractor/lang/csharp.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/csharp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/csp.d.ts b/types/refractor/lang/csp.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/csp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/css-extras.d.ts b/types/refractor/lang/css-extras.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/css-extras.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/css.d.ts b/types/refractor/lang/css.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/css.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/csv.d.ts b/types/refractor/lang/csv.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/csv.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/cypher.d.ts b/types/refractor/lang/cypher.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/cypher.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/d.d.ts b/types/refractor/lang/d.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/d.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/dart.d.ts b/types/refractor/lang/dart.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/dart.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/dax.d.ts b/types/refractor/lang/dax.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/dax.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/dhall.d.ts b/types/refractor/lang/dhall.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/dhall.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/diff.d.ts b/types/refractor/lang/diff.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/diff.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/django.d.ts b/types/refractor/lang/django.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/django.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/dns-zone-file.d.ts b/types/refractor/lang/dns-zone-file.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/dns-zone-file.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/docker.d.ts b/types/refractor/lang/docker.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/docker.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/ebnf.d.ts b/types/refractor/lang/ebnf.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/ebnf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/editorconfig.d.ts b/types/refractor/lang/editorconfig.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/editorconfig.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/eiffel.d.ts b/types/refractor/lang/eiffel.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/eiffel.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/ejs.d.ts b/types/refractor/lang/ejs.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/ejs.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/elixir.d.ts b/types/refractor/lang/elixir.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/elixir.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/elm.d.ts b/types/refractor/lang/elm.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/elm.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/erb.d.ts b/types/refractor/lang/erb.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/erb.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/erlang.d.ts b/types/refractor/lang/erlang.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/erlang.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/etlua.d.ts b/types/refractor/lang/etlua.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/etlua.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/excel-formula.d.ts b/types/refractor/lang/excel-formula.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/excel-formula.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/factor.d.ts b/types/refractor/lang/factor.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/factor.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/firestore-security-rules.d.ts b/types/refractor/lang/firestore-security-rules.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/firestore-security-rules.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/flow.d.ts b/types/refractor/lang/flow.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/flow.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/fortran.d.ts b/types/refractor/lang/fortran.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/fortran.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/fsharp.d.ts b/types/refractor/lang/fsharp.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/fsharp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/ftl.d.ts b/types/refractor/lang/ftl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/ftl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/gcode.d.ts b/types/refractor/lang/gcode.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/gcode.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/gdscript.d.ts b/types/refractor/lang/gdscript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/gdscript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/gedcom.d.ts b/types/refractor/lang/gedcom.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/gedcom.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/gherkin.d.ts b/types/refractor/lang/gherkin.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/gherkin.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/git.d.ts b/types/refractor/lang/git.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/git.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/glsl.d.ts b/types/refractor/lang/glsl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/glsl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/gml.d.ts b/types/refractor/lang/gml.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/gml.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/go.d.ts b/types/refractor/lang/go.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/go.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/graphql.d.ts b/types/refractor/lang/graphql.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/graphql.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/groovy.d.ts b/types/refractor/lang/groovy.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/groovy.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/haml.d.ts b/types/refractor/lang/haml.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/haml.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/handlebars.d.ts b/types/refractor/lang/handlebars.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/handlebars.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/haskell.d.ts b/types/refractor/lang/haskell.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/haskell.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/haxe.d.ts b/types/refractor/lang/haxe.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/haxe.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/hcl.d.ts b/types/refractor/lang/hcl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/hcl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/hlsl.d.ts b/types/refractor/lang/hlsl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/hlsl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/hpkp.d.ts b/types/refractor/lang/hpkp.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/hpkp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/hsts.d.ts b/types/refractor/lang/hsts.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/hsts.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/http.d.ts b/types/refractor/lang/http.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/http.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/ichigojam.d.ts b/types/refractor/lang/ichigojam.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/ichigojam.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/icon.d.ts b/types/refractor/lang/icon.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/icon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/iecst.d.ts b/types/refractor/lang/iecst.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/iecst.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/ignore.d.ts b/types/refractor/lang/ignore.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/ignore.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/inform7.d.ts b/types/refractor/lang/inform7.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/inform7.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/ini.d.ts b/types/refractor/lang/ini.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/ini.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/io.d.ts b/types/refractor/lang/io.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/io.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/j.d.ts b/types/refractor/lang/j.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/j.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/java.d.ts b/types/refractor/lang/java.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/java.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/javadoc.d.ts b/types/refractor/lang/javadoc.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/javadoc.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/javadoclike.d.ts b/types/refractor/lang/javadoclike.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/javadoclike.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/javascript.d.ts b/types/refractor/lang/javascript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/javascript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/javastacktrace.d.ts b/types/refractor/lang/javastacktrace.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/javastacktrace.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/jolie.d.ts b/types/refractor/lang/jolie.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/jolie.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/jq.d.ts b/types/refractor/lang/jq.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/jq.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/js-extras.d.ts b/types/refractor/lang/js-extras.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/js-extras.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/js-templates.d.ts b/types/refractor/lang/js-templates.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/js-templates.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/jsdoc.d.ts b/types/refractor/lang/jsdoc.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/jsdoc.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/json.d.ts b/types/refractor/lang/json.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/json.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/json5.d.ts b/types/refractor/lang/json5.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/json5.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/jsonp.d.ts b/types/refractor/lang/jsonp.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/jsonp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/jsstacktrace.d.ts b/types/refractor/lang/jsstacktrace.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/jsstacktrace.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/jsx.d.ts b/types/refractor/lang/jsx.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/jsx.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/julia.d.ts b/types/refractor/lang/julia.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/julia.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/keyman.d.ts b/types/refractor/lang/keyman.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/keyman.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/kotlin.d.ts b/types/refractor/lang/kotlin.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/kotlin.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/latex.d.ts b/types/refractor/lang/latex.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/latex.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/latte.d.ts b/types/refractor/lang/latte.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/latte.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/less.d.ts b/types/refractor/lang/less.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/less.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/lilypond.d.ts b/types/refractor/lang/lilypond.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/lilypond.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/liquid.d.ts b/types/refractor/lang/liquid.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/liquid.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/lisp.d.ts b/types/refractor/lang/lisp.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/lisp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/livescript.d.ts b/types/refractor/lang/livescript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/livescript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/llvm.d.ts b/types/refractor/lang/llvm.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/llvm.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/log.d.ts b/types/refractor/lang/log.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/log.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/lolcode.d.ts b/types/refractor/lang/lolcode.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/lolcode.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/lua.d.ts b/types/refractor/lang/lua.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/lua.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/makefile.d.ts b/types/refractor/lang/makefile.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/makefile.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/markdown.d.ts b/types/refractor/lang/markdown.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/markdown.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/markup-templating.d.ts b/types/refractor/lang/markup-templating.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/markup-templating.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/markup.d.ts b/types/refractor/lang/markup.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/markup.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/matlab.d.ts b/types/refractor/lang/matlab.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/matlab.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/mel.d.ts b/types/refractor/lang/mel.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/mel.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/mizar.d.ts b/types/refractor/lang/mizar.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/mizar.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/monkey.d.ts b/types/refractor/lang/monkey.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/monkey.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/moonscript.d.ts b/types/refractor/lang/moonscript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/moonscript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/n1ql.d.ts b/types/refractor/lang/n1ql.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/n1ql.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/n4js.d.ts b/types/refractor/lang/n4js.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/n4js.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/nand2tetris-hdl.d.ts b/types/refractor/lang/nand2tetris-hdl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/nand2tetris-hdl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/nasm.d.ts b/types/refractor/lang/nasm.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/nasm.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/neon.d.ts b/types/refractor/lang/neon.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/neon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/nginx.d.ts b/types/refractor/lang/nginx.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/nginx.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/nim.d.ts b/types/refractor/lang/nim.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/nim.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/nix.d.ts b/types/refractor/lang/nix.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/nix.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/nsis.d.ts b/types/refractor/lang/nsis.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/nsis.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/objectivec.d.ts b/types/refractor/lang/objectivec.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/objectivec.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/ocaml.d.ts b/types/refractor/lang/ocaml.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/ocaml.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/opencl.d.ts b/types/refractor/lang/opencl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/opencl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/oz.d.ts b/types/refractor/lang/oz.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/oz.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/parigp.d.ts b/types/refractor/lang/parigp.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/parigp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/parser.d.ts b/types/refractor/lang/parser.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/parser.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/pascal.d.ts b/types/refractor/lang/pascal.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/pascal.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/pascaligo.d.ts b/types/refractor/lang/pascaligo.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/pascaligo.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/pcaxis.d.ts b/types/refractor/lang/pcaxis.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/pcaxis.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/peoplecode.d.ts b/types/refractor/lang/peoplecode.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/peoplecode.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/perl.d.ts b/types/refractor/lang/perl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/perl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/php-extras.d.ts b/types/refractor/lang/php-extras.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/php-extras.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/php.d.ts b/types/refractor/lang/php.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/php.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/phpdoc.d.ts b/types/refractor/lang/phpdoc.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/phpdoc.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/plsql.d.ts b/types/refractor/lang/plsql.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/plsql.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/powerquery.d.ts b/types/refractor/lang/powerquery.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/powerquery.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/powershell.d.ts b/types/refractor/lang/powershell.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/powershell.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/processing.d.ts b/types/refractor/lang/processing.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/processing.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/prolog.d.ts b/types/refractor/lang/prolog.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/prolog.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/properties.d.ts b/types/refractor/lang/properties.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/properties.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/protobuf.d.ts b/types/refractor/lang/protobuf.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/protobuf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/pug.d.ts b/types/refractor/lang/pug.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/pug.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/puppet.d.ts b/types/refractor/lang/puppet.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/puppet.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/pure.d.ts b/types/refractor/lang/pure.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/pure.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/purebasic.d.ts b/types/refractor/lang/purebasic.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/purebasic.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/python.d.ts b/types/refractor/lang/python.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/python.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/q.d.ts b/types/refractor/lang/q.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/q.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/qml.d.ts b/types/refractor/lang/qml.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/qml.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/qore.d.ts b/types/refractor/lang/qore.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/qore.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/r.d.ts b/types/refractor/lang/r.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/r.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/racket.d.ts b/types/refractor/lang/racket.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/racket.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/reason.d.ts b/types/refractor/lang/reason.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/reason.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/regex.d.ts b/types/refractor/lang/regex.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/regex.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/renpy.d.ts b/types/refractor/lang/renpy.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/renpy.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/rest.d.ts b/types/refractor/lang/rest.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/rest.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/rip.d.ts b/types/refractor/lang/rip.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/rip.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/roboconf.d.ts b/types/refractor/lang/roboconf.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/roboconf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/robotframework.d.ts b/types/refractor/lang/robotframework.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/robotframework.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/ruby.d.ts b/types/refractor/lang/ruby.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/ruby.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/rust.d.ts b/types/refractor/lang/rust.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/rust.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/sas.d.ts b/types/refractor/lang/sas.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/sas.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/sass.d.ts b/types/refractor/lang/sass.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/sass.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/scala.d.ts b/types/refractor/lang/scala.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/scala.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/scheme.d.ts b/types/refractor/lang/scheme.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/scheme.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/scss.d.ts b/types/refractor/lang/scss.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/scss.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/shell-session.d.ts b/types/refractor/lang/shell-session.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/shell-session.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/smali.d.ts b/types/refractor/lang/smali.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/smali.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/smalltalk.d.ts b/types/refractor/lang/smalltalk.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/smalltalk.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/smarty.d.ts b/types/refractor/lang/smarty.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/smarty.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/solidity.d.ts b/types/refractor/lang/solidity.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/solidity.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/solution-file.d.ts b/types/refractor/lang/solution-file.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/solution-file.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/soy.d.ts b/types/refractor/lang/soy.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/soy.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/sparql.d.ts b/types/refractor/lang/sparql.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/sparql.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/splunk-spl.d.ts b/types/refractor/lang/splunk-spl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/splunk-spl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/sqf.d.ts b/types/refractor/lang/sqf.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/sqf.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/sql.d.ts b/types/refractor/lang/sql.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/sql.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/stylus.d.ts b/types/refractor/lang/stylus.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/stylus.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/swift.d.ts b/types/refractor/lang/swift.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/swift.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/t4-cs.d.ts b/types/refractor/lang/t4-cs.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/t4-cs.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/t4-templating.d.ts b/types/refractor/lang/t4-templating.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/t4-templating.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/t4-vb.d.ts b/types/refractor/lang/t4-vb.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/t4-vb.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/tap.d.ts b/types/refractor/lang/tap.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/tap.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/tcl.d.ts b/types/refractor/lang/tcl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/tcl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/textile.d.ts b/types/refractor/lang/textile.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/textile.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/toml.d.ts b/types/refractor/lang/toml.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/toml.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/tsx.d.ts b/types/refractor/lang/tsx.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/tsx.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/tt2.d.ts b/types/refractor/lang/tt2.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/tt2.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/turtle.d.ts b/types/refractor/lang/turtle.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/turtle.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/twig.d.ts b/types/refractor/lang/twig.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/twig.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/typescript.d.ts b/types/refractor/lang/typescript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/typescript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/unrealscript.d.ts b/types/refractor/lang/unrealscript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/unrealscript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/vala.d.ts b/types/refractor/lang/vala.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/vala.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/vbnet.d.ts b/types/refractor/lang/vbnet.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/vbnet.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/velocity.d.ts b/types/refractor/lang/velocity.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/velocity.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/verilog.d.ts b/types/refractor/lang/verilog.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/verilog.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/vhdl.d.ts b/types/refractor/lang/vhdl.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/vhdl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/vim.d.ts b/types/refractor/lang/vim.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/vim.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/visual-basic.d.ts b/types/refractor/lang/visual-basic.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/visual-basic.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/warpscript.d.ts b/types/refractor/lang/warpscript.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/warpscript.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/wasm.d.ts b/types/refractor/lang/wasm.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/wasm.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/wiki.d.ts b/types/refractor/lang/wiki.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/wiki.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/xeora.d.ts b/types/refractor/lang/xeora.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/xeora.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/xml-doc.d.ts b/types/refractor/lang/xml-doc.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/xml-doc.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/xojo.d.ts b/types/refractor/lang/xojo.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/xojo.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/xquery.d.ts b/types/refractor/lang/xquery.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/xquery.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/yaml.d.ts b/types/refractor/lang/yaml.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/yaml.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/yang.d.ts b/types/refractor/lang/yang.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/yang.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/lang/zig.d.ts b/types/refractor/lang/zig.d.ts deleted file mode 100644 index 2f3bb12550a705..00000000000000 --- a/types/refractor/lang/zig.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RefractorSyntax } from "../core"; -declare const lang: RefractorSyntax; -export = lang; diff --git a/types/refractor/package.json b/types/refractor/package.json deleted file mode 100644 index e6682c92a3878b..00000000000000 --- a/types/refractor/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "private": true, - "name": "@types/refractor", - "version": "3.4.9999", - "projects": [ - "https://github.com/wooorm/refractor#readme" - ], - "dependencies": { - "@types/prismjs": "*" - }, - "devDependencies": { - "@types/refractor": "workspace:." - }, - "owners": [ - { - "name": "Ifiok Jr.", - "githubUsername": "ifiokjr" - } - ] -} diff --git a/types/refractor/refractor-tests.ts b/types/refractor/refractor-tests.ts deleted file mode 100644 index 551b8a04c689a4..00000000000000 --- a/types/refractor/refractor-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import refractor = require("refractor/core"); -import markdown = require("refractor/lang/markdown"); - -refractor.register(markdown); -refractor.alias("markdown", "md"); -refractor.alias("markdown", ["md"]); -refractor.alias({ markdown: ["md"] }); diff --git a/types/refractor/tsconfig.json b/types/refractor/tsconfig.json deleted file mode 100644 index f56fc7ff612f2b..00000000000000 --- a/types/refractor/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "refractor-tests.ts" - ] -} diff --git a/types/serialport/.npmignore b/types/serialport/.npmignore deleted file mode 100644 index 6d63bc8127a464..00000000000000 --- a/types/serialport/.npmignore +++ /dev/null @@ -1,8 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts -/v4/ -/v6/ -/v7/ diff --git a/types/serialport/index.d.ts b/types/serialport/index.d.ts deleted file mode 100644 index 3909a590449bd4..00000000000000 --- a/types/serialport/index.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -/// - -import * as Stream from "stream"; - -declare class SerialPort extends Stream.Duplex { - constructor(path: string, callback?: SerialPort.ErrorCallback); - constructor(path: string, options?: SerialPort.OpenOptions, callback?: SerialPort.ErrorCallback); - - readonly baudRate: number; - readonly binding: SerialPort.BaseBinding; - readonly isOpen: boolean; - readonly path: string; - - open(callback?: SerialPort.ErrorCallback): void; - update(options: SerialPort.UpdateOptions, callback?: SerialPort.ErrorCallback): void; - - write( - data: string | number[] | Buffer, - callback?: (error: Error | null | undefined, bytesWritten: number) => void, - ): boolean; - write( - buffer: string | number[] | Buffer, - encoding?: "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "binary" | "hex", - callback?: (error: Error | null | undefined, bytesWritten: number) => void, - ): boolean; - - read(size?: number): string | Buffer | null; - - close(callback?: (error?: Error | null) => void): void; - - set(options: SerialPort.SetOptions, callback?: SerialPort.ErrorCallback): void; - get(callback?: SerialPort.ModemBitsCallback): void; - - flush(callback?: SerialPort.ErrorCallback): void; - drain(callback?: SerialPort.ErrorCallback): void; - - pause(): this; - resume(): this; - - on(event: string, callback: (data?: any) => void): this; - - static Binding: SerialPort.BaseBinding; - - static list(): Promise; -} - -declare namespace SerialPort { - // Callbacks Type Defs - type ErrorCallback = (error?: Error | null) => void; - type ModemBitsCallback = ( - error: Error | null | undefined, - status: { cts: boolean; dsr: boolean; dcd: boolean }, - ) => void; - - // Options Type Defs - interface OpenOptions { - autoOpen?: boolean | undefined; - baudRate?: - | 115200 - | 57600 - | 38400 - | 19200 - | 9600 - | 4800 - | 2400 - | 1800 - | 1200 - | 600 - | 300 - | 200 - | 150 - | 134 - | 110 - | 75 - | 50 - | number - | undefined; - dataBits?: 8 | 7 | 6 | 5 | undefined; - highWaterMark?: number | undefined; - lock?: boolean | undefined; - stopBits?: 1 | 2 | undefined; - parity?: "none" | "even" | "mark" | "odd" | "space" | undefined; - rtscts?: boolean | undefined; - xon?: boolean | undefined; - xoff?: boolean | undefined; - xany?: boolean | undefined; - binding?: BaseBinding | undefined; - bindingOptions?: { - vmin?: number | undefined; - vtime?: number | undefined; - } | undefined; - } - interface UpdateOptions { - baudRate?: - | 115200 - | 57600 - | 38400 - | 19200 - | 9600 - | 4800 - | 2400 - | 1800 - | 1200 - | 600 - | 300 - | 200 - | 150 - | 134 - | 110 - | 75 - | 50 - | number - | undefined; - } - interface SetOptions { - brk?: boolean | undefined; - cts?: boolean | undefined; - dsr?: boolean | undefined; - dtr?: boolean | undefined; - rts?: boolean | undefined; - } - - interface PortInfo { - path: string; - manufacturer?: string | undefined; - serialNumber?: string | undefined; - pnpId?: string | undefined; - locationId?: string | undefined; - productId?: string | undefined; - vendorId?: string | undefined; - } - - namespace parsers { - class ByteLength extends Stream.Transform { - constructor(options: { length: number }); - } - class CCTalk extends Stream.Transform { - constructor(); - } - class Delimiter extends Stream.Transform { - constructor(options: { delimiter: string | Buffer | number[]; includeDelimiter?: boolean | undefined }); - } - class Readline extends Delimiter { - constructor( - options: { - delimiter: string | Buffer | number[]; - encoding?: "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "binary" | "hex" | undefined; - includeDelimiter?: boolean | undefined; - }, - ); - } - class Ready extends Stream.Transform { - constructor(options: { delimiter: string | Buffer | number[] }); - } - class Regex extends Stream.Transform { - constructor(options: { regex: RegExp }); - } - } - - // Binding Type Defs - type win32Binding = BaseBinding; - type darwinBinding = BaseBinding; - type linuxBinding = BaseBinding; - - // Binding Type Def - class BaseBinding { - constructor(options: any); - - open(path: string, options: OpenOptions): Promise; - close(): Promise; - - read(data: Buffer, offset: number, length: number): Promise; - write(data: Buffer): Promise; - update(options?: UpdateOptions): Promise; - set(options?: SetOptions): Promise; - get(): Promise; - flush(): Promise; - drain(): Promise; - static list(): Promise; - } -} - -export = SerialPort; diff --git a/types/serialport/package.json b/types/serialport/package.json deleted file mode 100644 index aa9b03dfbe9922..00000000000000 --- a/types/serialport/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "private": true, - "name": "@types/serialport", - "version": "8.0.9999", - "projects": [ - "https://github.com/node-serialport/node-serialport" - ], - "dependencies": { - "@types/node": "*" - }, - "devDependencies": { - "@types/serialport": "workspace:." - }, - "owners": [ - { - "name": "Jeremy Foster", - "githubUsername": "codefoster" - }, - { - "name": "Andrew Pearson", - "githubUsername": "apearson" - }, - { - "name": "Cameron Tacklind", - "githubUsername": "cinderblock" - }, - { - "name": "Doug Brunner", - "githubUsername": "doug-a-brunner" - } - ] -} diff --git a/types/serialport/serialport-tests.ts b/types/serialport/serialport-tests.ts deleted file mode 100644 index 3241b1fd20f8df..00000000000000 --- a/types/serialport/serialport-tests.ts +++ /dev/null @@ -1,138 +0,0 @@ -// Tests taken from documentation samples. - -import SerialPort = require("serialport"); - -function test_basic_connect() { - const port = new SerialPort(""); -} - -function test_connect_config() { - const port1 = new SerialPort("", {}, error => {}); - - const port4 = new SerialPort("", { - autoOpen: false, - lock: false, - baudRate: 115200, - dataBits: 5, - stopBits: 2, - parity: "odd", - rtscts: true, - xon: true, - xoff: true, - highWaterMark: 1024, - bindingOptions: { - vmin: 1, - vtime: 1, - }, - }, error => { - if (error !== null) { - console.error(error); - } - }); -} - -function test_open() { - const port = new SerialPort(""); - port.open(() => {}); -} - -function test_update() { - const port = new SerialPort(""); - port.update({ baudRate: 57600 }); -} - -function test_write() { - const port = new SerialPort(""); - - port.write("test", (error?: Error | null) => {}); - port.write("test", "utf8", (error?: Error | null) => {}); -} - -function test_read() { - const port = new SerialPort(""); - - const data = port.read(8); -} - -function test_close() { - const port = new SerialPort(""); - - port.close((error?: Error | null) => {}); -} - -function test_set() { - const port = new SerialPort(""); - - port.set({}, (error?: Error | null) => {}); -} - -function test_get() { - const port = new SerialPort(""); - - port.get((error, status) => {}); -} - -function test_flush() { - const port = new SerialPort(""); - - port.flush((error?: Error | null) => {}); -} - -function test_drain() { - const port = new SerialPort(""); - - port.drain((error?: Error | null) => {}); -} - -function test_pause_resume() { - const port = new SerialPort(""); - - const pauseItem: SerialPort = port.pause(); - const resumeItem: SerialPort = port.resume(); -} - -function test_on_events() { - const port = new SerialPort(""); - - const onItem: SerialPort = port.on("event", (data: any) => {}); -} - -function test_binding() { - const port = new SerialPort(""); - - const bindingItem: SerialPort.BaseBinding = SerialPort.Binding; -} - -function test_parsers() { - const port = new SerialPort(""); - - const ByteLengthParser = new SerialPort.parsers.ByteLength({ length: 8 }); - const CCTalkParser = new SerialPort.parsers.CCTalk(); - const DelimiterParser = new SerialPort.parsers.Delimiter({ delimiter: Buffer.from("EOL"), includeDelimiter: true }); - const ReadlineParser = new SerialPort.parsers.Readline({ delimiter: "\r\n", includeDelimiter: false }); - const ReadyParser = new SerialPort.parsers.Ready({ delimiter: "READY" }); - const RegexParser = new SerialPort.parsers.Regex({ regex: /.*/ }); - - port.pipe(ByteLengthParser); - port.pipe(CCTalkParser); - port.pipe(DelimiterParser); - port.pipe(ReadlineParser); - port.pipe(ReadyParser); - port.pipe(RegexParser); -} - -function test_properties() { - const port = new SerialPort(""); - - const baudRate: number = port.baudRate; - const binding: SerialPort.BaseBinding = port.binding; - const isOpen: boolean = port.isOpen; - const path: string = port.path; -} - -function test_list_ports_promise() { - const ports = SerialPort - .list() - .then((ports: SerialPort.PortInfo[]) => {}) - .catch((err: Error) => {}); -} diff --git a/types/serialport/tsconfig.json b/types/serialport/tsconfig.json deleted file mode 100644 index b4228cfc1b8342..00000000000000 --- a/types/serialport/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "serialport-tests.ts" - ] -} diff --git a/types/serialport/v4/.npmignore b/types/serialport/v4/.npmignore deleted file mode 100644 index 93e307400a5456..00000000000000 --- a/types/serialport/v4/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts diff --git a/types/serialport/v4/index.d.ts b/types/serialport/v4/index.d.ts deleted file mode 100644 index 4b719f425ea9b2..00000000000000 --- a/types/serialport/v4/index.d.ts +++ /dev/null @@ -1,106 +0,0 @@ -/// -/// - -export = SerialPort; - -declare class SerialPort extends Stream { - // openImmediately already removed in 4.0.7 - constructor(path: string, options?: SerialPort.Options | SerialPort.callback, callback?: SerialPort.callback); - isOpen(): boolean; - on(event: string, callback?: (data?: any) => void): void; - open(callback?: SerialPort.callback): void; - write(buffer: any, callback?: (err: any, bytesWritten: number) => void): void; - pause(): void; - resume(): void; - disconnected(err: Error): void; - close(callback?: SerialPort.callback): void; - flush(callback?: SerialPort.callback): void; - set(options: SerialPort.SetOptions, callback: SerialPort.callback): void; - drain(callback?: SerialPort.callback): void; - update(options: SerialPort.UpdateOptions, callback?: SerialPort.callback): void; - static list(callback: (err: any, ports: SerialPort.PortConfig[]) => void): void; - // https://github.com/EmergingTechnologyAdvisors/node-serialport/blob/4.0.7/lib/parsers.js - static parsers: SerialPort.Parsers; -} - -declare namespace SerialPort { - interface PortConfig { - comName: string; - manufacturer: string; - serialNumber: string; - pnpId: string; - locationId: string; - vendorId: string; - productId: string; - } - - interface SetOptions { - brk?: boolean | undefined; - cts?: boolean | undefined; - dsr?: boolean | undefined; - dtr?: boolean | undefined; - rts?: boolean | undefined; - } - - interface UpdateOptions { - baudRate?: number | undefined; - } - - type serialParser = (emitter: NodeJS.EventEmitter, buffer: Buffer | string) => void; - - type readlineParser = ( - delimiter: string, - encoding?: "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "binary" | "hex", - ) => serialParser; - - type byteLengthParser = (delimiter: number) => serialParser; - - type byteDelimiterParser = (delimiter: number[]) => serialParser; - - type callback = (error: any) => void; - - interface Parsers { - Raw: serialParser; - Readline: readlineParser; - ByteLength: byteLengthParser; - ByteDelimiter: byteDelimiterParser; - } - - // https://github.com/EmergingTechnologyAdvisors/node-serialport/blob/4.0.7/README.md#user-content-serialport-path-options-opencallback - interface Options { - autoOpen?: boolean | undefined; - lock?: boolean | undefined; - baudRate?: - | 115200 - | 57600 - | 38400 - | 19200 - | 9600 - | 4800 - | 2400 - | 1800 - | 1200 - | 600 - | 300 - | 200 - | 150 - | 134 - | 110 - | 75 - | 50 - | number - | undefined; - dataBits?: 8 | 7 | 6 | 5 | undefined; - stopBits?: 1 | 2 | undefined; - parity?: "none" | "even" | "mark" | "odd" | "space" | undefined; - rtscts?: boolean | undefined; - xon?: boolean | undefined; - xoff?: boolean | undefined; - bufferSize?: number | undefined; - parser?: serialParser | undefined; - platformOptions?: { - vmin?: number | undefined; - vtime?: number | undefined; - } | undefined; - } -} diff --git a/types/serialport/v4/package.json b/types/serialport/v4/package.json deleted file mode 100644 index 7198a0a31491e5..00000000000000 --- a/types/serialport/v4/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "private": true, - "name": "@types/serialport", - "version": "4.0.9999", - "projects": [ - "https://github.com/EmergingTechnologyAdvisors/node-serialport" - ], - "dependencies": { - "@types/node": "*", - "@types/streamjs": "*" - }, - "devDependencies": { - "@types/serialport": "workspace:." - }, - "owners": [ - { - "name": "Jeremy Foster", - "githubUsername": "codefoster" - } - ] -} diff --git a/types/serialport/v4/serialport-tests.ts b/types/serialport/v4/serialport-tests.ts deleted file mode 100644 index 7ff7d36e604fbd..00000000000000 --- a/types/serialport/v4/serialport-tests.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Tests taken from documentation samples. - -import SerialPort = require("serialport"); - -function test_basic_connect() { - const port = new SerialPort(""); -} - -function test_connect_config() { - const port1 = new SerialPort("", { - baudRate: 0, - parser: SerialPort.parsers.Raw, - }, (err: any) => {}); - - const port2 = new SerialPort("", { - baudRate: 0, - parser: SerialPort.parsers.Readline("\n", "ascii"), - }, (err: any) => {}); - - const port3 = new SerialPort("", { - baudRate: 0, - parser: SerialPort.parsers.ByteLength(7), - }, (err: any) => {}); - - const port4 = new SerialPort("", { - baudRate: 0, - parser: SerialPort.parsers.ByteDelimiter([3, 4, 5]), - }, (err: any) => {}); - - const port5 = new SerialPort("", { - autoOpen: false, - lock: false, - baudRate: 115200, - dataBits: 5, - stopBits: 2, - parity: "odd", - rtscts: true, - xon: true, - xoff: true, - bufferSize: 1024, - platformOptions: { - vmin: 1, - vtime: 1, - }, - }, (err: any) => {}); -} - -function test_write() { - const port = new SerialPort(""); - port.write("main screen turn on", (err, bytesWritten) => {}); -} - -function test_events() { - const port = new SerialPort(""); - port.on("open", () => {}); -} - -function test_list_ports() { - SerialPort.list((err: string, ports: SerialPort.PortConfig[]) => {}); -} diff --git a/types/serialport/v4/tsconfig.json b/types/serialport/v4/tsconfig.json deleted file mode 100644 index b4228cfc1b8342..00000000000000 --- a/types/serialport/v4/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "serialport-tests.ts" - ] -} diff --git a/types/serialport/v6/.npmignore b/types/serialport/v6/.npmignore deleted file mode 100644 index 93e307400a5456..00000000000000 --- a/types/serialport/v6/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts diff --git a/types/serialport/v6/index.d.ts b/types/serialport/v6/index.d.ts deleted file mode 100644 index 430908ad41c518..00000000000000 --- a/types/serialport/v6/index.d.ts +++ /dev/null @@ -1,168 +0,0 @@ -/// - -import * as Stream from "stream"; - -declare class SerialPort extends Stream.Duplex { - constructor(path: string, callback?: SerialPort.ErrorCallback); - constructor(path: string, options?: SerialPort.OpenOptions, callback?: SerialPort.ErrorCallback); - - readonly baudRate: number; - readonly binding: SerialPort.BaseBinding; - readonly isOpen: boolean; - readonly path: string; - - open(callback?: SerialPort.ErrorCallback): void; - update(options: SerialPort.UpdateOptions, callback?: SerialPort.ErrorCallback): void; - - write(data: string | number[] | Buffer, callback?: (error: any, bytesWritten: number) => void): boolean; - write( - buffer: string | number[] | Buffer, - encoding?: "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "binary" | "hex", - callback?: (error: any, bytesWritten: number) => void, - ): boolean; - - read(size?: number): string | Buffer | null; - - close(callback?: (error: Error) => void): void; - - set(options: SerialPort.SetOptions, callback?: SerialPort.ErrorCallback): void; - get(callback?: SerialPort.ModemBitsCallback): void; - - flush(callback?: SerialPort.ErrorCallback): void; - drain(callback?: SerialPort.ErrorCallback): void; - - pause(): this; - resume(): this; - - on(event: string, callback: (data?: any) => void): this; - - static Binding: SerialPort.BaseBinding; - - static list(): Promise; -} - -declare namespace SerialPort { - // Callbacks Type Defs - type ErrorCallback = (error: Error) => void; - type ModemBitsCallback = (error: Error, status: { cts: boolean; dsr: boolean; dcd: boolean }) => void; - type ListCallback = (error: Error, port: any[]) => void; - - // Options Type Defs - interface OpenOptions { - autoOpen?: boolean | undefined; - baudRate?: - | 115200 - | 57600 - | 38400 - | 19200 - | 9600 - | 4800 - | 2400 - | 1800 - | 1200 - | 600 - | 300 - | 200 - | 150 - | 134 - | 110 - | 75 - | 50 - | number - | undefined; - dataBits?: 8 | 7 | 6 | 5 | undefined; - highWaterMark?: number | undefined; - lock?: boolean | undefined; - stopBits?: 1 | 2 | undefined; - parity?: "none" | "even" | "mark" | "odd" | "space" | undefined; - rtscts?: boolean | undefined; - xon?: boolean | undefined; - xoff?: boolean | undefined; - xany?: boolean | undefined; - binding?: BaseBinding | undefined; - bindingOptions?: { - vmin?: number | undefined; - vtime?: number | undefined; - } | undefined; - } - interface UpdateOptions { - baudRate?: - | 115200 - | 57600 - | 38400 - | 19200 - | 9600 - | 4800 - | 2400 - | 1800 - | 1200 - | 600 - | 300 - | 200 - | 150 - | 134 - | 110 - | 75 - | 50 - | number - | undefined; - } - interface SetOptions { - brk?: boolean | undefined; - cts?: boolean | undefined; - dsr?: boolean | undefined; - dtr?: boolean | undefined; - rts?: boolean | undefined; - } - - namespace parsers { - class ByteLength extends Stream.Transform { - constructor(options: { length: number }); - } - class CCTalk extends Stream.Transform { - constructor(); - } - class Delimiter extends Stream.Transform { - constructor(options: { delimiter: string | Buffer | number[]; includeDelimiter?: boolean | undefined }); - } - class Readline extends Delimiter { - constructor( - options: { - delimiter: string | Buffer | number[]; - encoding?: "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "binary" | "hex" | undefined; - includeDelimiter?: boolean | undefined; - }, - ); - } - class Ready extends Stream.Transform { - constructor(options: { data: string | Buffer | number[] }); - } - class Regex extends Stream.Transform { - constructor(options: { regex: RegExp }); - } - } - - // Binding Type Defs - type win32Binding = BaseBinding; - type darwinBinding = BaseBinding; - type linuxBinding = BaseBinding; - - // Binding Type Def - class BaseBinding { - constructor(options: any); - - open(path: string, options: OpenOptions): Promise; - close(): Promise; - - read(data: Buffer, offset: number, length: number): Promise; - write(data: Buffer): Promise; - update(options?: UpdateOptions): Promise; - set(options?: SetOptions): Promise; - get(): Promise; - flush(): Promise; - drain(): Promise; - static list(): Promise; - } -} - -export = SerialPort; diff --git a/types/serialport/v6/package.json b/types/serialport/v6/package.json deleted file mode 100644 index 46867c4d728bc6..00000000000000 --- a/types/serialport/v6/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "private": true, - "name": "@types/serialport", - "version": "6.0.9999", - "projects": [ - "https://github.com/EmergingTechnologyAdvisors/node-serialport" - ], - "dependencies": { - "@types/node": "*" - }, - "devDependencies": { - "@types/serialport": "workspace:." - }, - "owners": [ - { - "name": "Jeremy Foster", - "githubUsername": "codefoster" - }, - { - "name": "Andrew Pearson", - "githubUsername": "apearson" - } - ] -} diff --git a/types/serialport/v6/serialport-tests.ts b/types/serialport/v6/serialport-tests.ts deleted file mode 100644 index 48d5efa03ae391..00000000000000 --- a/types/serialport/v6/serialport-tests.ts +++ /dev/null @@ -1,127 +0,0 @@ -// Tests taken from documentation samples. - -import SerialPort = require("serialport"); - -function test_basic_connect() { - const port = new SerialPort(""); -} - -function test_connect_config() { - const port1 = new SerialPort("", {}, (error: Error) => {}); - - const port4 = new SerialPort("", { - autoOpen: false, - lock: false, - baudRate: 115200, - dataBits: 5, - stopBits: 2, - parity: "odd", - rtscts: true, - xon: true, - xoff: true, - highWaterMark: 1024, - bindingOptions: { - vmin: 1, - vtime: 1, - }, - }, (error: Error) => {}); -} - -function test_open() { - const port = new SerialPort(""); - port.open(() => {}); -} - -function test_update() { - const port = new SerialPort(""); - port.update({ baudRate: 57600 }); -} - -function test_write() { - const port = new SerialPort(""); - - port.write("test", (error: Error) => {}); - port.write("test", "utf8", (error: Error) => {}); -} - -function test_read() { - const port = new SerialPort(""); - - const data = port.read(8); -} - -function test_close() { - const port = new SerialPort(""); - - port.close((error: Error) => {}); -} - -function test_set() { - const port = new SerialPort(""); - - port.set({}, (error: Error) => {}); -} - -function test_get() { - const port = new SerialPort(""); - - port.get((error, status) => {}); -} - -function test_flush() { - const port = new SerialPort(""); - - port.flush((error: Error) => {}); -} - -function test_drain() { - const port = new SerialPort(""); - - port.drain((error: Error) => {}); -} - -function test_pause_resume() { - const port = new SerialPort(""); - - const pauseItem: SerialPort = port.pause(); - const resumeItem: SerialPort = port.resume(); -} - -function test_on_events() { - const port = new SerialPort(""); - - const onItem: SerialPort = port.on("event", (data: any) => {}); -} - -function test_binding() { - const port = new SerialPort(""); - - const bindingItem: SerialPort.BaseBinding = SerialPort.Binding; -} - -function test_parsers() { - const port = new SerialPort(""); - - const ByteLengthParser = new SerialPort.parsers.ByteLength({ length: 8 }); - const CCTalkParser = new SerialPort.parsers.CCTalk(); - const DelimiterParser = new SerialPort.parsers.Delimiter({ delimiter: Buffer.from("EOL") }); - const ReadlineParser = new SerialPort.parsers.Readline({ delimiter: "\r\n" }); - const ReadyParser = new SerialPort.parsers.Ready({ data: "READY" }); - const RegexParser = new SerialPort.parsers.Regex({ regex: /.*/ }); - - port.pipe(ByteLengthParser); - port.pipe(CCTalkParser); - port.pipe(DelimiterParser); - port.pipe(ReadlineParser); - port.pipe(ReadyParser); - port.pipe(RegexParser); -} - -function test_properties() { - const port = new SerialPort(""); - - const baudRate: number = port.baudRate; - const binding: SerialPort.BaseBinding = port.binding; - const isOpen: boolean = port.isOpen; - const path: string = port.path; -} diff --git a/types/serialport/v6/tsconfig.json b/types/serialport/v6/tsconfig.json deleted file mode 100644 index b4228cfc1b8342..00000000000000 --- a/types/serialport/v6/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "serialport-tests.ts" - ] -} diff --git a/types/serialport/v7/.npmignore b/types/serialport/v7/.npmignore deleted file mode 100644 index 93e307400a5456..00000000000000 --- a/types/serialport/v7/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts diff --git a/types/serialport/v7/index.d.ts b/types/serialport/v7/index.d.ts deleted file mode 100644 index 618048124673b9..00000000000000 --- a/types/serialport/v7/index.d.ts +++ /dev/null @@ -1,184 +0,0 @@ -/// - -import * as Stream from "stream"; - -declare class SerialPort extends Stream.Duplex { - constructor(path: string, callback?: SerialPort.ErrorCallback); - constructor(path: string, options?: SerialPort.OpenOptions, callback?: SerialPort.ErrorCallback); - - readonly baudRate: number; - readonly binding: SerialPort.BaseBinding; - readonly isOpen: boolean; - readonly path: string; - - open(callback?: SerialPort.ErrorCallback): void; - update(options: SerialPort.UpdateOptions, callback?: SerialPort.ErrorCallback): void; - - write( - data: string | number[] | Buffer, - callback?: (error: Error | null | undefined, bytesWritten: number) => void, - ): boolean; - write( - buffer: string | number[] | Buffer, - encoding?: "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "binary" | "hex", - callback?: (error: Error | null | undefined, bytesWritten: number) => void, - ): boolean; - - read(size?: number): string | Buffer | null; - - close(callback?: (error?: Error | null) => void): void; - - set(options: SerialPort.SetOptions, callback?: SerialPort.ErrorCallback): void; - get(callback?: SerialPort.ModemBitsCallback): void; - - flush(callback?: SerialPort.ErrorCallback): void; - drain(callback?: SerialPort.ErrorCallback): void; - - pause(): this; - resume(): this; - - on(event: string, callback: (data?: any) => void): this; - - static Binding: SerialPort.BaseBinding; - - static list(callback?: SerialPort.ListCallback): Promise; -} - -declare namespace SerialPort { - // Callbacks Type Defs - type ErrorCallback = (error?: Error | null) => void; - type ModemBitsCallback = ( - error: Error | null | undefined, - status: { cts: boolean; dsr: boolean; dcd: boolean }, - ) => void; - type ListCallback = (error: Error | null | undefined, ports: any[]) => void; - - // Options Type Defs - interface OpenOptions { - autoOpen?: boolean | undefined; - baudRate?: - | 115200 - | 57600 - | 38400 - | 19200 - | 9600 - | 4800 - | 2400 - | 1800 - | 1200 - | 600 - | 300 - | 200 - | 150 - | 134 - | 110 - | 75 - | 50 - | number - | undefined; - dataBits?: 8 | 7 | 6 | 5 | undefined; - highWaterMark?: number | undefined; - lock?: boolean | undefined; - stopBits?: 1 | 2 | undefined; - parity?: "none" | "even" | "mark" | "odd" | "space" | undefined; - rtscts?: boolean | undefined; - xon?: boolean | undefined; - xoff?: boolean | undefined; - xany?: boolean | undefined; - binding?: BaseBinding | undefined; - bindingOptions?: { - vmin?: number | undefined; - vtime?: number | undefined; - } | undefined; - } - interface UpdateOptions { - baudRate?: - | 115200 - | 57600 - | 38400 - | 19200 - | 9600 - | 4800 - | 2400 - | 1800 - | 1200 - | 600 - | 300 - | 200 - | 150 - | 134 - | 110 - | 75 - | 50 - | number - | undefined; - } - interface SetOptions { - brk?: boolean | undefined; - cts?: boolean | undefined; - dsr?: boolean | undefined; - dtr?: boolean | undefined; - rts?: boolean | undefined; - } - - interface PortInfo { - comName: string; - manufacturer?: string | undefined; - serialNumber?: string | undefined; - pnpId?: string | undefined; - locationId?: string | undefined; - productId?: string | undefined; - vendorId?: string | undefined; - } - - namespace parsers { - class ByteLength extends Stream.Transform { - constructor(options: { length: number }); - } - class CCTalk extends Stream.Transform { - constructor(); - } - class Delimiter extends Stream.Transform { - constructor(options: { delimiter: string | Buffer | number[]; includeDelimiter?: boolean | undefined }); - } - class Readline extends Delimiter { - constructor( - options: { - delimiter: string | Buffer | number[]; - encoding?: "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "binary" | "hex" | undefined; - includeDelimiter?: boolean | undefined; - }, - ); - } - class Ready extends Stream.Transform { - constructor(options: { delimiter: string | Buffer | number[] }); - } - class Regex extends Stream.Transform { - constructor(options: { regex: RegExp }); - } - } - - // Binding Type Defs - type win32Binding = BaseBinding; - type darwinBinding = BaseBinding; - type linuxBinding = BaseBinding; - - // Binding Type Def - class BaseBinding { - constructor(options: any); - - open(path: string, options: OpenOptions): Promise; - close(): Promise; - - read(data: Buffer, offset: number, length: number): Promise; - write(data: Buffer): Promise; - update(options?: UpdateOptions): Promise; - set(options?: SetOptions): Promise; - get(): Promise; - flush(): Promise; - drain(): Promise; - static list(): Promise; - } -} - -export = SerialPort; diff --git a/types/serialport/v7/package.json b/types/serialport/v7/package.json deleted file mode 100644 index 43e4d50aeb38ea..00000000000000 --- a/types/serialport/v7/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "private": true, - "name": "@types/serialport", - "version": "7.0.9999", - "projects": [ - "https://github.com/node-serialport/node-serialport" - ], - "dependencies": { - "@types/node": "*" - }, - "devDependencies": { - "@types/serialport": "workspace:." - }, - "owners": [ - { - "name": "Jeremy Foster", - "githubUsername": "codefoster" - }, - { - "name": "Andrew Pearson", - "githubUsername": "apearson" - }, - { - "name": "Cameron Tacklind", - "githubUsername": "cinderblock" - } - ] -} diff --git a/types/serialport/v7/serialport-tests.ts b/types/serialport/v7/serialport-tests.ts deleted file mode 100644 index 7d49d38cb2a1d4..00000000000000 --- a/types/serialport/v7/serialport-tests.ts +++ /dev/null @@ -1,142 +0,0 @@ -// Tests taken from documentation samples. - -import SerialPort = require("serialport"); - -function test_basic_connect() { - const port = new SerialPort(""); -} - -function test_connect_config() { - const port1 = new SerialPort("", {}, error => {}); - - const port4 = new SerialPort("", { - autoOpen: false, - lock: false, - baudRate: 115200, - dataBits: 5, - stopBits: 2, - parity: "odd", - rtscts: true, - xon: true, - xoff: true, - highWaterMark: 1024, - bindingOptions: { - vmin: 1, - vtime: 1, - }, - }, error => { - if (error !== null) { - console.error(error); - } - }); -} - -function test_open() { - const port = new SerialPort(""); - port.open(() => {}); -} - -function test_update() { - const port = new SerialPort(""); - port.update({ baudRate: 57600 }); -} - -function test_write() { - const port = new SerialPort(""); - - port.write("test", (error?: Error | null) => {}); - port.write("test", "utf8", (error?: Error | null) => {}); -} - -function test_read() { - const port = new SerialPort(""); - - const data = port.read(8); -} - -function test_close() { - const port = new SerialPort(""); - - port.close((error?: Error | null) => {}); -} - -function test_set() { - const port = new SerialPort(""); - - port.set({}, (error?: Error | null) => {}); -} - -function test_get() { - const port = new SerialPort(""); - - port.get((error, status) => {}); -} - -function test_flush() { - const port = new SerialPort(""); - - port.flush((error?: Error | null) => {}); -} - -function test_drain() { - const port = new SerialPort(""); - - port.drain((error?: Error | null) => {}); -} - -function test_pause_resume() { - const port = new SerialPort(""); - - const pauseItem: SerialPort = port.pause(); - const resumeItem: SerialPort = port.resume(); -} - -function test_on_events() { - const port = new SerialPort(""); - - const onItem: SerialPort = port.on("event", (data: any) => {}); -} - -function test_binding() { - const port = new SerialPort(""); - - const bindingItem: SerialPort.BaseBinding = SerialPort.Binding; -} - -function test_parsers() { - const port = new SerialPort(""); - - const ByteLengthParser = new SerialPort.parsers.ByteLength({ length: 8 }); - const CCTalkParser = new SerialPort.parsers.CCTalk(); - const DelimiterParser = new SerialPort.parsers.Delimiter({ delimiter: Buffer.from("EOL"), includeDelimiter: true }); - const ReadlineParser = new SerialPort.parsers.Readline({ delimiter: "\r\n", includeDelimiter: false }); - const ReadyParser = new SerialPort.parsers.Ready({ delimiter: "READY" }); - const RegexParser = new SerialPort.parsers.Regex({ regex: /.*/ }); - - port.pipe(ByteLengthParser); - port.pipe(CCTalkParser); - port.pipe(DelimiterParser); - port.pipe(ReadlineParser); - port.pipe(ReadyParser); - port.pipe(RegexParser); -} - -function test_properties() { - const port = new SerialPort(""); - - const baudRate: number = port.baudRate; - const binding: SerialPort.BaseBinding = port.binding; - const isOpen: boolean = port.isOpen; - const path: string = port.path; -} - -function test_list_ports_promise() { - const ports = SerialPort - .list() - .then((ports: SerialPort.PortInfo[]) => {}) - .catch((err: Error) => {}); -} - -function test_list_ports_callback() { - const ports = SerialPort.list((error: Error | null | undefined, ports: any[]) => {}); -} diff --git a/types/serialport/v7/tsconfig.json b/types/serialport/v7/tsconfig.json deleted file mode 100644 index b4228cfc1b8342..00000000000000 --- a/types/serialport/v7/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "serialport-tests.ts" - ] -}