repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2020.promise.ts
engine/src/parser/compiler-host/ts-lib/lib.es2020.promise.ts
const fileData = { fileName: `/lib.es2020.promise.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface PromiseFulfilledResult<T>{status:"fulfilled"...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.proxy.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.proxy.ts
const fileData = { fileName: `/lib.es2015.proxy.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface ProxyHandler<T extends object>{apply?(target:T...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2017.typedarrays.ts
engine/src/parser/compiler-host/ts-lib/lib.es2017.typedarrays.ts
const fileData = { fileName: `/lib.es2017.typedarrays.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface Int8ArrayConstructor{new():Int8Array;}in...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2019.string.ts
engine/src/parser/compiler-host/ts-lib/lib.es2019.string.ts
const fileData = { fileName: `/lib.es2019.string.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface String{trimEnd():string;trimStart():string;tr...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2020.number.ts
engine/src/parser/compiler-host/ts-lib/lib.es2020.number.ts
const fileData = { fileName: `/lib.es2020.number.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2020.intl" />\ninterface Number{t...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.esnext.ts
engine/src/parser/compiler-host/ts-lib/lib.esnext.ts
const fileData = { fileName: `/lib.esnext.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2022" />\n/// <reference lib="esnext.int...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2020.string.ts
engine/src/parser/compiler-host/ts-lib/lib.es2020.string.ts
const fileData = { fileName: `/lib.es2020.string.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2015.iterable" />\ninterface Stri...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2018.asyncgenerator.ts
engine/src/parser/compiler-host/ts-lib/lib.es2018.asyncgenerator.ts
const fileData = { fileName: `/lib.es2018.asyncgenerator.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2018.asynciterable" />\ni...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2022.string.ts
engine/src/parser/compiler-host/ts-lib/lib.es2022.string.ts
const fileData = { fileName: `/lib.es2022.string.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface String{at(index:number):string|undefined;}` }...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2019.array.ts
engine/src/parser/compiler-host/ts-lib/lib.es2019.array.ts
const fileData = { fileName: `/lib.es2019.array.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ntype FlatArray<Arr,Depth extends number>={"done":Arr,"re...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2022.sharedmemory.ts
engine/src/parser/compiler-host/ts-lib/lib.es2022.sharedmemory.ts
const fileData = { fileName: `/lib.es2022.sharedmemory.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface Atomics{waitAsync(typedArray:BigInt64Ar...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.reflect.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.reflect.ts
const fileData = { fileName: `/lib.es2015.reflect.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ndeclare namespace Reflect{function apply<T,A extends r...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2018.promise.ts
engine/src/parser/compiler-host/ts-lib/lib.es2018.promise.ts
const fileData = { fileName: `/lib.es2018.promise.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface Promise<T>{finally(onfinally?:(()=>void)|und...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2019.intl.ts
engine/src/parser/compiler-host/ts-lib/lib.es2019.intl.ts
const fileData = { fileName: `/lib.es2019.intl.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ndeclare namespace Intl{interface DateTimeFormatPartTypesR...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2018.regexp.ts
engine/src/parser/compiler-host/ts-lib/lib.es2018.regexp.ts
const fileData = { fileName: `/lib.es2018.regexp.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface RegExpMatchArray{groups?:{[key:string]:string...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2022.error.ts
engine/src/parser/compiler-host/ts-lib/lib.es2022.error.ts
const fileData = { fileName: `/lib.es2022.error.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface ErrorOptions{cause?:unknown;}interface Error{c...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2022.intl.ts
engine/src/parser/compiler-host/ts-lib/lib.es2022.intl.ts
const fileData = { fileName: `/lib.es2022.intl.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ndeclare namespace Intl{interface SegmenterOptions{localeM...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2020.bigint.ts
engine/src/parser/compiler-host/ts-lib/lib.es2020.bigint.ts
const fileData = { fileName: `/lib.es2020.bigint.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2020.intl" />\ninterface BigIntTo...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2017.sharedmemory.ts
engine/src/parser/compiler-host/ts-lib/lib.es2017.sharedmemory.ts
const fileData = { fileName: `/lib.es2017.sharedmemory.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2015.symbol" />\n/// <refer...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es5.ts
engine/src/parser/compiler-host/ts-lib/lib.es5.ts
const fileData = { fileName: `/lib.es5.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
true
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2022.ts
engine/src/parser/compiler-host/ts-lib/lib.es2022.ts
const fileData = { fileName: `/lib.es2022.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2021" />\n/// <reference lib="es2022.arr...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2021.ts
engine/src/parser/compiler-host/ts-lib/lib.es2021.ts
const fileData = { fileName: `/lib.es2021.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2020" />\n/// <reference lib="es2021.pro...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.generator.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.generator.ts
const fileData = { fileName: `/lib.es2015.generator.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2015.iterable" />\ninterface G...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.esnext.intl.ts
engine/src/parser/compiler-host/ts-lib/lib.esnext.intl.ts
const fileData = { fileName: `/lib.esnext.intl.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ndeclare namespace Intl{interface NumberRangeFormatPart ex...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2017.object.ts
engine/src/parser/compiler-host/ts-lib/lib.es2017.object.ts
const fileData = { fileName: `/lib.es2017.object.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface ObjectConstructor{values<T>(o:{[s:string]:T}|...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2018.intl.ts
engine/src/parser/compiler-host/ts-lib/lib.es2018.intl.ts
const fileData = { fileName: `/lib.es2018.intl.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ndeclare namespace Intl{type LDMLPluralRule="zero"|"one"|"...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2021.intl.ts
engine/src/parser/compiler-host/ts-lib/lib.es2021.intl.ts
const fileData = { fileName: `/lib.es2021.intl.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ndeclare namespace Intl{interface DateTimeFormatPartTypesR...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2020.intl.ts
engine/src/parser/compiler-host/ts-lib/lib.es2020.intl.ts
const fileData = { fileName: `/lib.es2020.intl.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2018.intl" />\ndeclare namespace In...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2017.string.ts
engine/src/parser/compiler-host/ts-lib/lib.es2017.string.ts
const fileData = { fileName: `/lib.es2017.string.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface String{padStart(maxLength:number,fillString?:...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/file-type/SourceModuleKind.ts
engine/src/parser/file-type/SourceModuleKind.ts
import ts from "typescript"; import { isExported } from "../../ast/Node"; import { NodeIndex } from "../../matcher/engine/NodeIndex"; export type SourceModuleKind = { id: "TYPESCRIPT" | "COMMON_JS" | "ECMASCRIPT" | "SCRIPT"; isVarGlobal: boolean; }; export type getSourceModuleKind = (nodes: NodeIndex) => SourceMo...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/file-type/VueSfcFileType.test.ts
engine/src/parser/file-type/VueSfcFileType.test.ts
import ts from "typescript"; import { Range } from "../../util/text/Range"; import { VueSfcFileType } from "./VueSfcFileType"; function executeGetEmbeddedScripts(content: string) { return new VueSfcFileType().getEmbeddedScripts(content).map((result) => ({ language: result.language, scriptKind: result.scriptK...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/file-type/VueSfcFileType.ts
engine/src/parser/file-type/VueSfcFileType.ts
import ts from "typescript"; import { Range } from "../../util/text/Range"; import { FileType } from "./FileType"; import { Language } from "./Language"; import { ScriptRange } from "./ScriptRange"; import { ECMASCRIPT_MODULE_KIND } from "./SourceModuleKind"; // TODO this is hacky and can break in edge cases, because ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/file-type/FileTypes.test.ts
engine/src/parser/file-type/FileTypes.test.ts
import { NodeIndex } from "../../matcher/engine/NodeIndex"; import { parse } from "../parse"; async function executeGetSourceModuleKind( fileName: string, sourceCode: string ) { const parseResult = (await parse(fileName, undefined, sourceCode))[0]; return parseResult.getSourceModuleKind(new NodeIndex(parseResu...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/file-type/ScriptRange.ts
engine/src/parser/file-type/ScriptRange.ts
import ts from "typescript"; import { Range } from "../../util/text/Range"; import { SupportedExtension } from "./FileTypes"; import { Language } from "./Language"; import { getSourceModuleKind } from "./SourceModuleKind"; export type ScriptRange = { range: Range; scriptKind: ts.ScriptKind; areTopLevelVariablesL...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/file-type/FixedFileType.ts
engine/src/parser/file-type/FixedFileType.ts
import ts from "typescript"; import { Range } from "../../util/text/Range"; import { FileType } from "./FileType"; import { Language } from "./Language"; import { getSourceModuleKind } from "./SourceModuleKind"; export class FixedFileType implements FileType { get possibleLanguages() { return [this.language]; ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/file-type/FileTypes.ts
engine/src/parser/file-type/FileTypes.ts
import ts from "typescript"; import { CodeAssistType } from "../../code-assist/CodeAssistType"; import { AnyMatch } from "../../matcher/engine/Match"; import { getFileExtension } from "../../util/fs/getFileExtension"; import { FileType } from "./FileType"; import { FixedFileType } from "./FixedFileType"; import { Scrip...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/file-type/FileType.ts
engine/src/parser/file-type/FileType.ts
import { Language } from "./Language"; import { ScriptRange } from "./ScriptRange"; export interface FileType { readonly possibleLanguages: Array<Language>; /** * Calculates detailed source settings for a file. This is required for embedded script sections, * e.g. inside Vue SFCs. Returns an empty array whe...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/file-type/Language.ts
engine/src/parser/file-type/Language.ts
export type Language = "JAVASCRIPT" | "TYPESCRIPT";
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/function-directive/src/FunctionDirectiveMatcher.ts
augmentation/function-directive/src/FunctionDirectiveMatcher.ts
import { capture, matchers as m, PatternMatcher, predicates as p, } from "@p42/engine"; import ts from "typescript"; import { FunctionDirectiveMatch } from "./FunctionDirectiveMatch"; const { ast } = m; export class FunctionDirectiveMatcher extends PatternMatcher<FunctionDirectiveMatch> { candidates = { ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/function-directive/src/FunctionDirectiveMatch.ts
augmentation/function-directive/src/FunctionDirectiveMatch.ts
import { Match } from "@p42/engine"; import ts from "typescript"; export interface FunctionDirectiveMatch extends Match< ts.FunctionExpression | ts.FunctionDeclaration, { /** * Contains a directive defining string literal (such as "use strict") * that has been set for the function. ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/function-directive/src/FunctionDirectiveAugmentation.ts
augmentation/function-directive/src/FunctionDirectiveAugmentation.ts
import { MatchAugmentation } from "@p42/engine"; import { FunctionDirectiveMatch } from "./FunctionDirectiveMatch"; import { FunctionDirectiveMatcher } from "./FunctionDirectiveMatcher"; export const FunctionDirectiveAugmentation = new MatchAugmentation<FunctionDirectiveMatch>({ id: "function-directive", mat...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/function-directive/src/index.ts
augmentation/function-directive/src/index.ts
import { FunctionDirectiveAugmentation } from "./FunctionDirectiveAugmentation"; export { FunctionDirectiveAugmentation } from "./FunctionDirectiveAugmentation"; export { FunctionDirectiveMatch } from "./FunctionDirectiveMatch"; // export { matchFunctionDirective as arrayLoop } from "./matchFunctionDirective"; TODO e...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-check/src/UndefinedCheckMatch.ts
augmentation/undefined-check/src/UndefinedCheckMatch.ts
import { Match } from "@p42/engine"; import ts from "typescript"; export type UndefinedCheckType = | "EQ_EQ_EQ_UNDEFINED" | "TYPEOF_EQ_EQ_UNDEFINED" | "TYPEOF_EQ_EQ_EQ_UNDEFINED"; export interface UndefinedCheckMatch extends Match< ts.BinaryExpression, { /** * The expression that is teste...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-check/src/UndefinedCheckMatcher.ts
augmentation/undefined-check/src/UndefinedCheckMatcher.ts
import EqualityCheckAugmentation, { equalityCheck, } from "@p42/augmentation-equality-check"; import UndefinedAliasAugmentation, { undefinedAlias, } from "@p42/augmentation-undefined-alias"; import { capture, matchers as m, PatternMatcher, predicates as p, } from "@p42/engine"; import ts from "typescript"; ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-check/src/matchUndefinedCheck.ts
augmentation/undefined-check/src/matchUndefinedCheck.ts
import { builders as b, Context, predicates as p } from "@p42/engine"; import ts from "typescript"; import { UndefinedCheckAugmentation } from "./UndefinedCheckAugmentation"; import { UndefinedCheckMatch, UndefinedCheckType } from "./UndefinedCheckMatch"; export function matchUndefinedCheck({ checkedExpression = und...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-check/src/UndefinedCheckAugmentation.ts
augmentation/undefined-check/src/UndefinedCheckAugmentation.ts
import { MatchAugmentation } from "@p42/engine"; import { UndefinedCheckMatch } from "./UndefinedCheckMatch"; import { UndefinedCheckMatcher } from "./UndefinedCheckMatcher"; export const UndefinedCheckAugmentation = new MatchAugmentation<UndefinedCheckMatch>({ id: "undefined-check", matchers: [UndefinedChec...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-check/src/index.ts
augmentation/undefined-check/src/index.ts
import { UndefinedCheckAugmentation } from "./UndefinedCheckAugmentation"; export { UndefinedCheckAugmentation } from "./UndefinedCheckAugmentation"; export { UndefinedCheckMatch } from "./UndefinedCheckMatch"; export { matchUndefinedCheck as undefinedCheck } from "./matchUndefinedCheck"; export default UndefinedChec...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/equality-check/src/EqualityCheckMatch.ts
augmentation/equality-check/src/EqualityCheckMatch.ts
import { Match } from "@p42/engine"; import ts from "typescript"; export interface EqualityCheckMatch extends Match< ts.PrefixUnaryExpression | ts.BinaryExpression, { part1: ts.Expression; part2: ts.Expression; /** * True if the check is a strict check with === or !== */ ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/equality-check/src/EqualityCheckAugmentation.ts
augmentation/equality-check/src/EqualityCheckAugmentation.ts
import { MatchAugmentation } from "@p42/engine"; import { EqualityCheckMatch } from "./EqualityCheckMatch"; import { EqualityCheckMatcher } from "./EqualityCheckMatcher"; import { InvertedEqualityCheckMatcher } from "./InvertedEqualityCheckMatcher"; export const EqualityCheckAugmentation = new MatchAugmentation<Equa...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/equality-check/src/matchEqualityCheck.ts
augmentation/equality-check/src/matchEqualityCheck.ts
import ts from "typescript"; import { builders as b, Context, predicates as p } from "@p42/engine"; import { EqualityCheckAugmentation } from "./EqualityCheckAugmentation"; import { EqualityCheckMatch } from "./EqualityCheckMatch"; export function matchEqualityCheck({ part1 = undefined, part2 = undefined, isStri...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/equality-check/src/InvertedEqualityCheckMatcher.ts
augmentation/equality-check/src/InvertedEqualityCheckMatcher.ts
import { capture, Context, matchers as m, PatternMatcher, predicates as p, } from "@p42/engine"; import ts from "typescript"; import { EqualityCheckMatch } from "./EqualityCheckMatch"; const { ast } = m; export class InvertedEqualityCheckMatcher extends PatternMatcher<EqualityCheckMatch> { candidates = { ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/equality-check/src/EqualityCheckMatcher.ts
augmentation/equality-check/src/EqualityCheckMatcher.ts
import { capture, Context, matchers as m, PatternMatcher, predicates as p, } from "@p42/engine"; import ts from "typescript"; import { EqualityCheckMatch } from "./EqualityCheckMatch"; const { ast } = m; export class EqualityCheckMatcher extends PatternMatcher<EqualityCheckMatch> { candidates = { node...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/equality-check/src/index.ts
augmentation/equality-check/src/index.ts
import { EqualityCheckAugmentation } from "./EqualityCheckAugmentation"; export { EqualityCheckAugmentation } from "./EqualityCheckAugmentation"; export { EqualityCheckMatch } from "./EqualityCheckMatch"; export { matchEqualityCheck as equalityCheck } from "./matchEqualityCheck"; export default EqualityCheckAugmentat...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/nullish-check/src/NullishCheckMatcher.ts
augmentation/nullish-check/src/NullishCheckMatcher.ts
import EqualityCheckAugmentation, { equalityCheck, } from "@p42/augmentation-equality-check"; import UndefinedAliasAugmentation, { nullishConstant, undefinedAlias, } from "@p42/augmentation-undefined-alias"; import { capture, matchers as m, PatternMatcher, predicates as p, } from "@p42/engine"; import ts ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/nullish-check/src/matchNullishCheck.ts
augmentation/nullish-check/src/matchNullishCheck.ts
import { builders as b, Context, predicates as p } from "@p42/engine"; import ts from "typescript"; import { NullishCheckAugmentation } from "./NullishCheckAugmentation"; import { NullishCheckMatch, NullishCheckType } from "./NullishCheckMatch"; export function matchNullishCheck({ checkedExpression = undefined, is...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/nullish-check/src/NullishCheckMatch.ts
augmentation/nullish-check/src/NullishCheckMatch.ts
import { Match } from "@p42/engine"; import ts from "typescript"; export type NullishCheckType = | "EQ_EQ_NULL" | "EQ_EQ_UNDEFINED" | "EQ_EQ_EQ_NULL_OR_UNDEFINED"; export interface NullishCheckMatch extends Match< ts.BinaryExpression, { /** * The expression that is tested if it's nullish ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/nullish-check/src/index.ts
augmentation/nullish-check/src/index.ts
import { NullishCheckAugmentation } from "./NullishCheckAugmentation"; export { NullishCheckAugmentation } from "./NullishCheckAugmentation"; export { NullishCheckMatch } from "./NullishCheckMatch"; export { matchNullishCheck as nullishCheck } from "./matchNullishCheck"; export default NullishCheckAugmentation;
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/nullish-check/src/NullishCheckAugmentation.ts
augmentation/nullish-check/src/NullishCheckAugmentation.ts
import { MatchAugmentation } from "@p42/engine"; import { NullishCheckMatch } from "./NullishCheckMatch"; import { NullishCheckMatcher } from "./NullishCheckMatcher"; export const NullishCheckAugmentation = new MatchAugmentation<NullishCheckMatch>({ id: "nullish-check", matchers: [NullishCheckMatcher], });...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/array-loop/src/ForLoopMatcher.ts
augmentation/array-loop/src/ForLoopMatcher.ts
import { Binding, capture, VariableDeclarationKind, matchers as m, PatternMatcher, predicates as p, Context, } from "@p42/engine"; import ts from "typescript"; import { ArrayLoopMatch, ArrayMatchCaptures, ArrayMatchData, ArrayMatchNode, } from "./ArrayLoopMatch"; const { ast } = m; export class ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/array-loop/src/ForOfLoopMatcher.ts
augmentation/array-loop/src/ForOfLoopMatcher.ts
import { Binding, capture, Context, matchers as m, PatternMatcher, predicates as p, } from "@p42/engine"; import ts from "typescript"; import { ArrayLoopMatch, ArrayMatchCaptures, ArrayMatchData, ArrayMatchNode, } from "./ArrayLoopMatch"; const { ast } = m; export class ForOfLoopMatcher extends Pa...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/array-loop/src/ArrayLoopAugmentation.ts
augmentation/array-loop/src/ArrayLoopAugmentation.ts
import { MatchAugmentation } from "@p42/engine"; import { ArrayLoopMatch } from "./ArrayLoopMatch"; import { ForEachLoopMatcher } from "./ForEachLoopMatcher"; import { ForLoopMatcher } from "./ForLoopMatcher"; import { ForOfLoopMatcher } from "./ForOfLoopMatcher"; export const ArrayLoopAugmentation = new MatchAugmenta...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/array-loop/src/ForEachLoopMatcher.ts
augmentation/array-loop/src/ForEachLoopMatcher.ts
import { Binding, capture, Context, matchers as m, PatternMatcher, predicates as p, } from "@p42/engine"; import ts from "typescript"; import { ArrayLoopMatch, ArrayMatchCaptures, ArrayMatchData, ArrayMatchNode, } from "./ArrayLoopMatch"; const { ast } = m; export class ForEachLoopMatcher extends ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/array-loop/src/ArrayLoopMatch.ts
augmentation/array-loop/src/ArrayLoopMatch.ts
import { Binding, Context, EditorOperation, Match, NodeRange, nameOracle, predicates as p, matchers as m, Range, TransformedNodeTree, BindingReference, } from "@p42/engine"; import ts from "typescript"; const { ast } = m; export type ArrayLoopMatchType = "for-element" | "for-of" | "for-each"; e...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/array-loop/src/index.ts
augmentation/array-loop/src/index.ts
import { ArrayLoopAugmentation } from "./ArrayLoopAugmentation"; export { ArrayLoopAugmentation } from "./ArrayLoopAugmentation"; export { ArrayLoopMatch } from "./ArrayLoopMatch"; export { matchArrayLoop as arrayLoop } from "./matchArrayLoop"; export default ArrayLoopAugmentation;
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/array-loop/src/matchArrayLoop.ts
augmentation/array-loop/src/matchArrayLoop.ts
import { Binding, builders as b, Context, predicates as p } from "@p42/engine"; import ts from "typescript"; import { ArrayLoopAugmentation } from "./ArrayLoopAugmentation"; import { ArrayLoopMatch, ArrayLoopMatchType } from "./ArrayLoopMatch"; export const matchArrayLoop = ({ type = undefined, elementBinding = un...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-alias/src/UndefinedAliasMatch.ts
augmentation/undefined-alias/src/UndefinedAliasMatch.ts
import { Match } from "@p42/engine"; import ts from "typescript"; export type UndefinedAliasType = "undefined-literal" | "void-constant"; export interface UndefinedAliasMatch extends Match< ts.Identifier, { type: UndefinedAliasType; }, undefined > {}
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-alias/src/VoidConstantMatcher.ts
augmentation/undefined-alias/src/VoidConstantMatcher.ts
import { capture, isConstantExpression, matchers as m, PatternMatcher, } from "@p42/engine"; import ts from "typescript"; import { UndefinedAliasMatch, UndefinedAliasType } from "./UndefinedAliasMatch"; const { ast } = m; export class VoidConstantMatcher extends PatternMatcher<UndefinedAliasMatch> { candida...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-alias/src/matchNullishConstant.ts
augmentation/undefined-alias/src/matchNullishConstant.ts
import { matchers as m, predicates as p } from "@p42/engine"; import { undefinedAlias } from "."; const { ast } = m; export const matchNullishConstant = p.or(ast.nullKeyword, undefinedAlias());
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-alias/src/UndefinedLiteralMatcher.ts
augmentation/undefined-alias/src/UndefinedLiteralMatcher.ts
import { capture, GlobalProperty, matchers as m, PatternMatcher, } from "@p42/engine"; import ts from "typescript"; import { UndefinedAliasMatch, UndefinedAliasType } from "./UndefinedAliasMatch"; const { ast } = m; export class UndefinedLiteralMatcher extends PatternMatcher<UndefinedAliasMatch> { candidate...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-alias/src/UndefinedAliasAugmentation.ts
augmentation/undefined-alias/src/UndefinedAliasAugmentation.ts
import { MatchAugmentation } from "@p42/engine"; import { UndefinedAliasMatch } from "./UndefinedAliasMatch"; import { UndefinedLiteralMatcher } from "./UndefinedLiteralMatcher"; import { VoidConstantMatcher } from "./VoidConstantMatcher"; export const UndefinedAliasAugmentation = new MatchAugmentation<UndefinedAlia...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-alias/src/index.ts
augmentation/undefined-alias/src/index.ts
import { UndefinedAliasAugmentation } from "./UndefinedAliasAugmentation"; export { UndefinedAliasAugmentation } from "./UndefinedAliasAugmentation"; export { UndefinedAliasMatch } from "./UndefinedAliasMatch"; export { matchUndefinedAlias as undefinedAlias } from "./matchUndefinedAlias"; export { matchNullishConstan...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/undefined-alias/src/matchUndefinedAlias.ts
augmentation/undefined-alias/src/matchUndefinedAlias.ts
import { builders as b, Context, predicates as p } from "@p42/engine"; import { UndefinedAliasAugmentation } from "./UndefinedAliasAugmentation"; import { UndefinedAliasMatch, UndefinedAliasType } from "./UndefinedAliasMatch"; export function matchUndefinedAlias({ type = undefined, node = undefined, constraints ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/lodash-call/src/LodashCallAugmentation.ts
augmentation/lodash-call/src/LodashCallAugmentation.ts
import { MatchAugmentation } from "@p42/engine"; import { LodashCallMatch } from "./LodashCallMatch"; import { LodashCallMatcher } from "./LodashCallMatcher"; export const LodashCallAugmentation = new MatchAugmentation<LodashCallMatch>({ id: "lodash-call", matchers: [LodashCallMatcher], });
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/lodash-call/src/LodashCallMatcher.ts
augmentation/lodash-call/src/LodashCallMatcher.ts
import { capture, matchers as m, PatternMatcher } from "@p42/engine"; import ts from "typescript"; import { LodashCallMatch } from "./LodashCallMatch"; const { ast } = m; export class LodashCallMatcher extends PatternMatcher<LodashCallMatch> { candidates = { nodes: [ts.SyntaxKind.CallExpression], }; create...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/lodash-call/src/matchLodashCall.ts
augmentation/lodash-call/src/matchLodashCall.ts
import { builders as b, Context, predicates as p } from "@p42/engine"; import ts from "typescript"; import { LodashCallAugmentation } from "./LodashCallAugmentation"; import { LodashCallMatch } from "./LodashCallMatch"; export const matchLodashCall = ({ name = undefined, args = undefined, node = undefined, con...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/lodash-call/src/LodashCallMatch.ts
augmentation/lodash-call/src/LodashCallMatch.ts
import { Match } from "@p42/engine"; import ts from "typescript"; export interface LodashCallMatch extends Match< ts.CallExpression, { name: string; propertyAccess: ts.PropertyAccessExpression; }, undefined > {}
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/lodash-call/src/index.ts
augmentation/lodash-call/src/index.ts
import { LodashCallAugmentation } from "./LodashCallAugmentation"; export { LodashCallAugmentation } from "./LodashCallAugmentation"; export { LodashCallMatch } from "./LodashCallMatch"; export { matchLodashCall as lodashCall } from "./matchLodashCall"; export default LodashCallAugmentation;
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/conditional-assignment/src/ConditionalAssignmentAugmentation.ts
augmentation/conditional-assignment/src/ConditionalAssignmentAugmentation.ts
import { MatchAugmentation } from "@p42/engine"; import { ConditionalAssignmentMatch } from "./ConditionalAssignmentMatch"; import { ConditionalAssignmentMatcher } from "./ConditionalAssignmentMatcher"; export const ConditionalAssignmentAugmentation = new MatchAugmentation<ConditionalAssignmentMatch>({ id: "cond...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/conditional-assignment/src/ConditionalAssignmentMatcher.ts
augmentation/conditional-assignment/src/ConditionalAssignmentMatcher.ts
import { capture, PatternMatcher, predicates as p, matchers as m, Context, } from "@p42/engine"; import ts from "typescript"; import { ConditionalAssignmentMatch, ConditionalAssignmentType, } from "./ConditionalAssignmentMatch"; const { ast } = m; export class ConditionalAssignmentMatcher extends Patte...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/conditional-assignment/src/index.ts
augmentation/conditional-assignment/src/index.ts
import { ConditionalAssignmentAugmentation } from "./ConditionalAssignmentAugmentation"; export { ConditionalAssignmentAugmentation } from "./ConditionalAssignmentAugmentation"; export { ConditionalAssignmentType, ConditionalAssignmentMatch, } from "./ConditionalAssignmentMatch"; export { matchConditionalAssignmen...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/conditional-assignment/src/ConditionalAssignmentMatch.ts
augmentation/conditional-assignment/src/ConditionalAssignmentMatch.ts
import { Match } from "@p42/engine"; import ts from "typescript"; export type ConditionalAssignmentType = | "IF_ELSE_STATEMENT" | "CONDITIONAL_EXPRESSION"; export interface ConditionalAssignmentMatch extends Match< /** * Root expression of the subtree that contains the conditional assignment. */ ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/augmentation/conditional-assignment/src/matchConditionalAssignment.ts
augmentation/conditional-assignment/src/matchConditionalAssignment.ts
import { builders as b, Context, predicates as p } from "@p42/engine"; import ts from "typescript"; import { ConditionalAssignmentAugmentation } from "./ConditionalAssignmentAugmentation"; import { ConditionalAssignmentMatch, ConditionalAssignmentType, } from "./ConditionalAssignmentMatch"; export function matchCo...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
alexziskind1/llm-inference-calculator
https://github.com/alexziskind1/llm-inference-calculator/blob/79c53a953ec2043bffb70e164c1ca00b0aff39a9/vite.config.ts
vite.config.ts
import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; // https://vite.dev/config/ export default defineConfig({ plugins: [react()], });
typescript
MIT
79c53a953ec2043bffb70e164c1ca00b0aff39a9
2026-01-05T04:59:56.590656Z
false
alexziskind1/llm-inference-calculator
https://github.com/alexziskind1/llm-inference-calculator/blob/79c53a953ec2043bffb70e164c1ca00b0aff39a9/src/App.tsx
src/App.tsx
import { useState } from 'react'; import './App.css'; import { MemoryMode, ModelQuantization, KvCacheQuantization } from './types'; import { calculateHardwareRecommendation, calculateOnDiskSize, } from './calculations'; import { Tooltip } from './components/Tooltip'; import { ThemeToggle } from './components/ThemeT...
typescript
MIT
79c53a953ec2043bffb70e164c1ca00b0aff39a9
2026-01-05T04:59:56.590656Z
false
alexziskind1/llm-inference-calculator
https://github.com/alexziskind1/llm-inference-calculator/blob/79c53a953ec2043bffb70e164c1ca00b0aff39a9/src/main.tsx
src/main.tsx
import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import './index.css'; import App from './App.tsx'; import { ThemeProvider } from './contexts/ThemeContext.tsx'; createRoot(document.getElementById('root')!).render( <StrictMode> <ThemeProvider> <App /> </ThemeProvider> ...
typescript
MIT
79c53a953ec2043bffb70e164c1ca00b0aff39a9
2026-01-05T04:59:56.590656Z
false
alexziskind1/llm-inference-calculator
https://github.com/alexziskind1/llm-inference-calculator/blob/79c53a953ec2043bffb70e164c1ca00b0aff39a9/src/types.ts
src/types.ts
/** Memory mode: discrete GPU or unified memory. */ export type MemoryMode = 'DISCRETE_GPU' | 'UNIFIED_MEMORY'; /** Model quantization set: F32, F16, Q8, Q6, Q5, Q4, Q3, Q2, GPTQ, AWQ. */ export type ModelQuantization = | 'F32' | 'F16' | 'Q8' | 'Q6' | 'Q5' | 'Q4' | 'Q3' | 'Q2' | 'GPTQ' | 'AWQ'; /*...
typescript
MIT
79c53a953ec2043bffb70e164c1ca00b0aff39a9
2026-01-05T04:59:56.590656Z
false
alexziskind1/llm-inference-calculator
https://github.com/alexziskind1/llm-inference-calculator/blob/79c53a953ec2043bffb70e164c1ca00b0aff39a9/src/calculations.ts
src/calculations.ts
import { MemoryMode, ModelQuantization, KvCacheQuantization, Recommendation, } from './types'; type InferenceMode = 'incremental' | 'bulk'; /** * Returns GB factor for a 1B param model based on quantization. * This function converts the quantization setting into an estimate of how many * gigabytes are requ...
typescript
MIT
79c53a953ec2043bffb70e164c1ca00b0aff39a9
2026-01-05T04:59:56.590656Z
false
alexziskind1/llm-inference-calculator
https://github.com/alexziskind1/llm-inference-calculator/blob/79c53a953ec2043bffb70e164c1ca00b0aff39a9/src/vite-env.d.ts
src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
79c53a953ec2043bffb70e164c1ca00b0aff39a9
2026-01-05T04:59:56.590656Z
false
alexziskind1/llm-inference-calculator
https://github.com/alexziskind1/llm-inference-calculator/blob/79c53a953ec2043bffb70e164c1ca00b0aff39a9/src/components/ThemeToggle.tsx
src/components/ThemeToggle.tsx
import React from 'react'; import { useTheme } from '../contexts/ThemeContext'; import './ThemeToggle.css'; export const ThemeToggle: React.FC = () => { const { theme, toggleTheme } = useTheme(); return ( <button className="theme-toggle" onClick={toggleTheme} aria-label={`Switch to ${theme =...
typescript
MIT
79c53a953ec2043bffb70e164c1ca00b0aff39a9
2026-01-05T04:59:56.590656Z
false
alexziskind1/llm-inference-calculator
https://github.com/alexziskind1/llm-inference-calculator/blob/79c53a953ec2043bffb70e164c1ca00b0aff39a9/src/components/Tooltip.tsx
src/components/Tooltip.tsx
import { ReactNode } from 'react'; import './Tooltip.css'; interface TooltipProps { text: string; children: ReactNode; } export const Tooltip = ({ text, children }: TooltipProps) => { return ( <span className="info-icon"> {children} <span className="tooltip-text">{text}</span> </span> ); }...
typescript
MIT
79c53a953ec2043bffb70e164c1ca00b0aff39a9
2026-01-05T04:59:56.590656Z
false
alexziskind1/llm-inference-calculator
https://github.com/alexziskind1/llm-inference-calculator/blob/79c53a953ec2043bffb70e164c1ca00b0aff39a9/src/contexts/ThemeContext.tsx
src/contexts/ThemeContext.tsx
import React, { createContext, useContext, useState, useEffect } from 'react'; type Theme = 'light' | 'dark'; interface ThemeContextType { theme: Theme; toggleTheme: () => void; } const ThemeContext = createContext<ThemeContextType | undefined>(undefined); export const useTheme = () => { const context = useCo...
typescript
MIT
79c53a953ec2043bffb70e164c1ca00b0aff39a9
2026-01-05T04:59:56.590656Z
false
wbern/claude-instructions
https://github.com/wbern/claude-instructions/blob/c5b9bbea43e3db9f9dfe655aadbd258f412d0b24/vitest.config.ts
vitest.config.ts
import { defineConfig } from "vitest/config"; export default defineConfig({ test: { coverage: { provider: "v8", reporter: ["text", "html", "json"], include: ["scripts/**/*.ts"], exclude: [ "scripts/**/*.test.ts", "scripts/__tests__/**", "scripts/*.d.ts", "s...
typescript
MIT
c5b9bbea43e3db9f9dfe655aadbd258f412d0b24
2026-01-05T04:59:56.521961Z
false
wbern/claude-instructions
https://github.com/wbern/claude-instructions/blob/c5b9bbea43e3db9f9dfe655aadbd258f412d0b24/tsup.config.ts
tsup.config.ts
import { defineConfig } from "tsup"; export default defineConfig({ entry: { cli: "scripts/bin.ts" }, format: ["esm"], outDir: "bin", clean: true, shims: true, banner: { js: "#!/usr/bin/env node", }, });
typescript
MIT
c5b9bbea43e3db9f9dfe655aadbd258f412d0b24
2026-01-05T04:59:56.521961Z
false
wbern/claude-instructions
https://github.com/wbern/claude-instructions/blob/c5b9bbea43e3db9f9dfe655aadbd258f412d0b24/scripts/tty.ts
scripts/tty.ts
/** * Check if stdout is connected to a TTY (terminal). * Returns true if interactive, false if piped/redirected/CI. */ export function isInteractiveTTY(): boolean { return process.stdout.isTTY === true; }
typescript
MIT
c5b9bbea43e3db9f9dfe655aadbd258f412d0b24
2026-01-05T04:59:56.521961Z
false
wbern/claude-instructions
https://github.com/wbern/claude-instructions/blob/c5b9bbea43e3db9f9dfe655aadbd258f412d0b24/scripts/fragment-expander.test.ts
scripts/fragment-expander.test.ts
import { describe, expect, it, vi } from "vitest"; import { expandContent } from "./fragment-expander.js"; vi.mock("fs-extra", () => ({ default: { readFileSync: vi.fn().mockReturnValue("Fragment content here"), }, })); describe("expandContent", () => { it("should return content unchanged when no INCLUDE dir...
typescript
MIT
c5b9bbea43e3db9f9dfe655aadbd258f412d0b24
2026-01-05T04:59:56.521961Z
false
wbern/claude-instructions
https://github.com/wbern/claude-instructions/blob/c5b9bbea43e3db9f9dfe655aadbd258f412d0b24/scripts/utils.ts
scripts/utils.ts
import fs from "node:fs"; /** * Get all markdown files from a directory. * @param dir - Directory path to search * @returns Array of markdown filenames (not full paths) */ export function getMarkdownFiles(dir: string): string[] { return fs .readdirSync(dir) .filter((f) => f.endsWith(".md") && !f.startsWi...
typescript
MIT
c5b9bbea43e3db9f9dfe655aadbd258f412d0b24
2026-01-05T04:59:56.521961Z
false
wbern/claude-instructions
https://github.com/wbern/claude-instructions/blob/c5b9bbea43e3db9f9dfe655aadbd258f412d0b24/scripts/generate-readme.test.ts
scripts/generate-readme.test.ts
import fs from "node:fs"; import os from "node:os"; import path from "node:path"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { CATEGORIES, cleanFrontmatter, createConfig, generateCommandsMarkdown, getCategory, parseFrontmatter, processMarkdownFiles, writeCommandsMet...
typescript
MIT
c5b9bbea43e3db9f9dfe655aadbd258f412d0b24
2026-01-05T04:59:56.521961Z
false
wbern/claude-instructions
https://github.com/wbern/claude-instructions/blob/c5b9bbea43e3db9f9dfe655aadbd258f412d0b24/scripts/build.ts
scripts/build.ts
#!/usr/bin/env tsx import { execSync } from "node:child_process"; import fs from "node:fs"; import { processMarkdownFiles } from "./generate-readme.js"; function run(cmd: string, options?: { silent?: boolean }): void { execSync(cmd, { stdio: options?.silent ? "pipe" : "inherit", encoding: "utf-8", }); } ...
typescript
MIT
c5b9bbea43e3db9f9dfe655aadbd258f412d0b24
2026-01-05T04:59:56.521961Z
false
wbern/claude-instructions
https://github.com/wbern/claude-instructions/blob/c5b9bbea43e3db9f9dfe655aadbd258f412d0b24/scripts/cli.ts
scripts/cli.ts
import os from "node:os"; import { confirm, groupMultiselect, intro, isCancel, log, note, outro, select, text, } from "@clack/prompts"; import { diffLines } from "diff"; import picocolors from "picocolors"; import * as v from "valibot"; const pc = process.env.FORCE_COLOR ? picocolors.createColors(tru...
typescript
MIT
c5b9bbea43e3db9f9dfe655aadbd258f412d0b24
2026-01-05T04:59:56.521961Z
false
wbern/claude-instructions
https://github.com/wbern/claude-instructions/blob/c5b9bbea43e3db9f9dfe655aadbd258f412d0b24/scripts/generate-readme.ts
scripts/generate-readme.ts
import fs from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import * as v from "valibot"; import { REQUESTED_TOOLS_KEY } from "./cli-generator.js"; import { generateMarkdownTable } from "./cli-options.js"; import { parseOptions } from "./fragment-expander.js"; import { getErrorMess...
typescript
MIT
c5b9bbea43e3db9f9dfe655aadbd258f412d0b24
2026-01-05T04:59:56.521961Z
false