上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 467 下一页
摘要: import { getAnimatingState } from "fake-animation-lib"; import { Equal, Expect } from "../helpers/type-utils"; const animatingState = getAnimatingStat 阅读全文
posted @ 2023-02-23 15:12 Zhentiw 阅读(188) 评论(0) 推荐(0) 编辑
摘要: import React from 'react'; declare global { namespace JSX { interface IntrinsicElements { 'custom-element': { children?: React.ReactNode; title?: stri 阅读全文
posted @ 2023-02-22 15:38 Zhentiw 阅读(44) 评论(0) 推荐(0) 编辑
摘要: import { Equal, Expect } from '../helpers/type-utils'; import { F } from 'ts-toolbelt'; interface Fruit { name: string; price: number; } export const 阅读全文
posted @ 2023-02-22 15:17 Zhentiw 阅读(12) 评论(0) 推荐(0) 编辑
摘要: In Javascript, if you are using Object to store key-valeu pairs while you will be adding and deleting keys frequently, then you should use Map instead 阅读全文
posted @ 2023-02-21 16:08 Zhentiw 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Promise.all: Problem: let's say we have two promises, P1, P2, P1 reject in 1s, and P2 reject in 3s. What will happen in catch block? It only able to c 阅读全文
posted @ 2023-02-20 15:07 Zhentiw 阅读(17) 评论(0) 推荐(0) 编辑
摘要: import { createMachine } from "@zag-js/core"; type MachineState = { value: "idle" | "focused"; }; type MachineContext = { value: string[]; focusedInde 阅读全文
posted @ 2023-02-19 03:25 Zhentiw 阅读(26) 评论(0) 推荐(0) 编辑
摘要: Idea is put component props inside hook, and return from hook, that's way to keep component clean and simple Hook: import { MachineOptions } from "./m 阅读全文
posted @ 2023-02-19 03:23 Zhentiw 阅读(17) 评论(0) 推荐(0) 编辑
摘要: The gap property in CSS is a shorthand for row-gap and column-gap, specifying the size of gutters, which is the space between rows and columns within  阅读全文
posted @ 2023-02-18 17:16 Zhentiw 阅读(47) 评论(0) 推荐(0) 编辑
摘要: Run: pnpm create vite Give a project name, select framework & Typescript. Run: pnpm devto start the dev server 阅读全文
posted @ 2023-02-18 17:05 Zhentiw 阅读(16) 评论(0) 推荐(0) 编辑
摘要: import { it } from 'vitest'; interface Events { click: { x: number; y: number; }; focus: undefined; } type LookUpEvents<K extends keyof Events> = Even 阅读全文
posted @ 2023-02-18 16:15 Zhentiw 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 467 下一页