Younho Choo

Results 16 comments of Younho Choo

But, `alfy.fetch` doesn't pass any other options except `searchParams` to `got`. How could I add header option here without modifying `alfy.fetch`? https://github.com/sindresorhus/alfy/blob/main/index.js#L136-L138

> ```ts > type OptionalKeys = NonNullable< > { > [Key in keyof Base]: undefined extends Base[Key] // This line is the only difference compared to `ConditionalKeys` > ? Key...

[TypeScript Playground of CJS Output ({ "module": "commonjs", "target": "ES2019" })](https://www.typescriptlang.org/play?target=6&module=1&ssl=7&ssc=1&pln=7&pc=66#code/CYUwxgNghgTiAEYD2A7AzgF3hqBzAXPAK4oCWAjkQmgJ4C2ARkhANwBQboksCGNADggAqeXCGAAeIUgDWIFAD54AXngBvNgEg4UYKgg14AbRy4AuoWlyU7AL7s2IAB78kMLH0HwA8vyiUQKQEQABp4K3kVYhQZFCQAd0UooWD4ADJw0XEpWXkFFiA) [TypeScript Playground of ESM Output ({ "module": "ES2020", "target": "ES2020" })](https://www.typescriptlang.org/play?target=7&module=6#code/CYUwxgNghgTiAEYD2A7AzgF3hqBzAXPAK4oCWAjkQmgJ4C2ARkhANwBQboksCGNADggAqeXCGAAeIUgDWIFAD54AXngBvNgEg4UYKgg14AbRy4AuoWlyU7AL7s2IAB78kMLH0HwA8vyiUQKQEQABp4K3kVYhQZFCQAd0UooWD4ADJw0XEpWXkFFiA) Well, I'm not completely sure, but there seems...

> Here's my implementation of ExcludeStrict, @ChristianIvicevic (a derivative of your ExtractStrict): `export type ExcludeStrict = Exclude;`. Could ExtractStrict be implemented in the same way? `export type ExtractStrict = Extract;`

Can this issue be suggested for [`is`](https://github.com/sindresorhus/is)?

It seems likely to be extended to a function that verify the schema of an object. Some ideas are as follows. ```ts import is from '@sindresorhus/is' import {objectEntries, objectHasOwn} from...

There is a similar implementation in `ow`. https://github.com/sindresorhus/ow/issues/92

Additional context: [[email protected]](https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#type-in-packagejson-and-new-extensions) > ```typescript > // ./bar.ts > import { helper } from "./foo.js"; // works in ESM & CJS > > helper(); > ``` > > This might...

I'm sorry, but the [notion-py](https://github.com/jamalex/notion-py) that this project depends on is supposed to enter ID and password of notion if don't have token.