profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/zhaoyao91/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

zhaoyao91/dmeteor 10

run meteor in docker easily

zhaoyao91/ck-env 2

Check and ensure environment variables.

zhaoyao91/as-async 1

run or wrap a function as an async function

zhaoyao91/clean-options 1

clean options

zhaoyao91/clean-undefined 1

Delete object fields of undefined.

zhaoyao91/cut-potato 1

A generic version of reduce.

zhaoyao91/error-utils 1

js error utils

zhaoyao91/accumulate-facebook-data 0

Accumulate facebook data.

startedmoment/luxon

started time in 2 days

issue closeddevelopit/microbundle

`generateTypes=false` does not work for umd

I have a build cmd below:

microbundle build -f umd --external=none --generateTypes=false --sourcemap=false

However, it still generate types file to the dist dir

closed time in 12 days

zhaoyao91

issue commentdevelopit/microbundle

`generateTypes=false` does not work for umd

well, it's TS project. I'll close this to prefer #863

zhaoyao91

comment created time in 12 days

issue openeddevelopit/microbundle

`generateTypes=false` does not work for umd

I have a build cmd below:

microbundle build -f umd --external=none --generateTypes=false --sourcemap=false

However, it still generate types file to the dist dir

created time in 15 days

pull request commentatomiks/tippyjs

fix contains algorithm for shadow dom

I checked the latest release, this fix doesn't appear to be in there. interactive: true still doesn't work for elements within a shadow dom.

@hedgehog90 yes, tippy does not release yet since then.

zhaoyao91

comment created time in 22 days

startedsmore-inc/clippy.js

started time in 22 days

startedstatelyai/xstate

started time in 23 days

startedpurescript/purescript

started time in a month

issue openedzhansingsong/js-leakage-patterns

为什么不更新了?

created time in a month

startedzhansingsong/js-leakage-patterns

started time in a month

startedunshiftio/url-parse

started time in 2 months

issue commentrollup/rollup

Build in parallel

Hi, why was the issue closed? Today this is still a issue. I use rollup to build multiple inputs with multiple configs (cross product). I can exports an array in rollup config, but they only get built one by one, very slow.

fregante

comment created time in 2 months

startedkrzkaczor/ts-essentials

started time in 2 months

startedmillsp/ts-toolbelt

started time in 2 months

startedRich-Harris/degit

started time in 2 months

starteddetectiveHLH/webassembly-in-react

started time in 2 months

startedamiller-gh/currentScript-polyfill

started time in 2 months

startedsodatea/get-current-script

started time in 2 months

startedandreasbm/focus-trap

started time in 2 months

startedandreasbm/web-dialog

started time in 2 months

startedsolidjs/solid-start

started time in 2 months

issue closeddevelopit/microbundle

Nullish coalescing are not handled

in the cjs and esm outputs, the ??, or, nullish coalescing, is not compiled.

closed time in 2 months

zhaoyao91

issue openeddevelopit/microbundle

Nullish coalescing are not handled

in the cjs and esm outputs, the ??, or, nullish coalescing, is not compiled.

created time in 2 months

issue closedfaisalman/ua-parser-js

Nullish coalescing are not handled

in the cjs and esm outputs, the ??, or, nullish coalescing, is not compiled.

closed time in 2 months

zhaoyao91

issue commentfaisalman/ua-parser-js

Nullish coalescing are not handled

sorry, send wrong issue.

zhaoyao91

comment created time in 2 months

issue openedfaisalman/ua-parser-js

Nullish coalescing are not handled

in the cjs and esm outputs, the ??, or, nullish coalescing, is not compiled.

created time in 2 months

startedfaisalman/ua-parser-js

started time in 3 months

startedAssemblyScript/assemblyscript

started time in 3 months

startedstyled-components/polished

started time in 3 months

issue openedmicrosoft/TypeScript

After upgrade from v4.2 to v4.3, same code report [2589]

Bug Report

<!-- Please fill in each section completely. Thank you! -->

🔎 Search Terms

<!-- What search terms did you use when trying to find an existing bug report? List them here so people in the future can find this one more easily. -->

v4.3.4 2589

🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed. For npm: typescript@next This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies: -->

  • This changed between versions v4.2.3 and 4.3.4

⏯ Playground Link

<!-- A link to a TypeScript Playground "Share" link which shows this behavior

The TypeScript Workbench can be used for more complex setups, try https://www.typescriptlang.org/dev/bug-workbench/

As a last resort, you can link to a repo, but these will be slower for us to investigate. -->

💻 Code

<!-- Please post the relevant code sample here as well-->

type Ensure<X, Y> = X extends Y ? X : never;
type SafeKey<T> = T extends string | number ? `${T}` : never;
type SafeValue<O, K> = K extends keyof O ? O[K] : never;

export type Paths<O, P = ""> = O extends object
  ? {
      [K in keyof O]:
        | (P extends "" ? K : `${SafeKey<P>}.${SafeKey<K>}`)
        | Paths<O[K], P extends "" ? K : `${SafeKey<P>}.${SafeKey<K>}`>;
    }[keyof O]
  : never;

export type Get<O, P extends Paths<O>> = P extends `${infer X}.${infer XS}`
  ? Get<SafeValue<O, X>, Ensure<XS, Paths<SafeValue<O, X>>>>
  : SafeValue<O, P>;

🙁 Actual behavior

line 14 errored: Type instantiation is excessively deep and possibly infinite.(2589)

🙂 Expected behavior

<!-- What you expected to happen instead, and why -->

all work

created time in 3 months