This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Selection, SelectQueryBuilder, StringReference } from "kysely"; | |
| type ExtractSelection<DB, TE extends keyof DB & string, SE> = Selection< | |
| DB, | |
| TE, | |
| SE | |
| >[keyof Selection<DB, TE, SE>]; | |
| type ExtractTableName< | |
| DB, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Prettify<T> = { [K in keyof T]: T[K] } & {}; | |
| type RemoveTail< | |
| S extends string, | |
| Tail extends string | |
| > = S extends `${infer P}${Tail}` ? P : S; | |
| type GetPathParam<S extends string> = RemoveTail< | |
| RemoveTail<S, `.${string}`>, | |
| `/${string}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/node_modules/drizzle-kit/index.cjs b/node_modules/drizzle-kit/index.cjs | |
| index d608580..e4096af 100755 | |
| --- a/node_modules/drizzle-kit/index.cjs | |
| +++ b/node_modules/drizzle-kit/index.cjs | |
| @@ -4862,7 +4862,8 @@ var init_pgSchema = __esm({ | |
| }).strict(); | |
| enumSchema = objectType({ | |
| name: stringType(), | |
| - values: recordType(stringType(), stringType()) | |
| + values: recordType(stringType(), stringType()), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const machine = Machine({ | |
| id: 'churnDeflection', | |
| initial: 'startDialog', | |
| context: { | |
| feedback: '', | |
| }, | |
| states: { | |
| startDialog: { | |
| on: { | |
| LIFE_CHANGE: { target: 'pauseSubDialog', actions: 'sendLifeChangeEvent' }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % True if Atom contains only numeric characters. | |
| % | |
| % numeric('10'). true | |
| % numeric('x'). false | |
| numeric(Atom) :- | |
| atom(Atom), | |
| atom_chars(Atom, Chars), | |
| catch(number_chars(_, Chars), _, false). | |
| semver_tag_char('-'). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function spyPromise() { | |
| const _then = Promise.prototype.then; | |
| const _catch = Promise.prototype.catch; | |
| const handled = new WeakSet<Promise<any>>(); | |
| // eslint-disable-next-line no-extend-native | |
| Promise.prototype.then = function thenSpy(this: any, ...args: any) { | |
| if (args.length > 1) { | |
| handled.add(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install hub cli tool from https://github.com/github/hub as it is not available as a debian package. | |
| # We use hub to fetch additional repo information from github (in this case the target branch ref of a PR). | |
| curl -L https://github.com/github/hub/releases/download/v2.13.0/hub-linux-386-2.13.0.tgz | tar -xz | |
| mv hub-linux-386-2.13.0/bin/* /usr/local/bin | |
| rm -rf hub-linux-386-2.13.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Type declarations for https://github.com/metalabdesign/pages-webpack-plugin | |
| /// <reference types="webpack" /> | |
| declare module 'pages-webpack-plugin' { | |
| import webpack from 'webpack'; | |
| interface Result { | |
| markup: string; | |
| redirect?: string; | |
| status?: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ts from 'typescript'; | |
| import sources from 'polyfill-library/lib/sources'; | |
| import * as tsMorph from 'ts-morph'; | |
| interface Match { | |
| kind?: ts.SyntaxKind; | |
| operatorTokenKind?: ts.SyntaxKind; | |
| typeSymbolName?: string; | |
| symbolName?: string; | |
| expression?: Match; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function proxyAll<T extends object>(source: any): ProxyHandler<T> { | |
| return { | |
| apply(target, thisArg, argumentsList) { | |
| return Reflect.apply(source, thisArg, argumentsList); | |
| }, | |
| construct(target, argumentsList, newTarget) { | |
| return Reflect.construct(source, argumentsList, newTarget); | |
| }, | |
| defineProperty(target, property, descriptor) { | |
| return Reflect.defineProperty(source, property, descriptor); |
NewerOlder