This file contains 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 React from "react" | |
import type { ReactNode } from "react" | |
const { createContext, useContext, useRef, useState } = React; | |
type PromiseCanUse<T> = Promise<T> & { | |
status?: 'pending' | 'fulfilled' | 'rejected' | |
reason?: unknown | |
value?: T | |
} |
This file contains 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
patch: | |
# 方案列表 | |
schema_list: | |
# 可以直接删除或注释不需要的方案,对应的 *.schema.yaml 方案文件也可以直接删除。 | |
# - schema: rime_ice # 雾凇拼音(全拼) | |
# - schema: double_pinyin # 自然码双拼 | |
# - schema: double_pinyin_abc # 智能 ABC 双拼 | |
# - schema: double_pinyin_mspy # 微软双拼 | |
# - schema: double_pinyin_sogou # 搜狗双拼 | |
- schema: double_pinyin_flypy # 小鹤双拼 |
This file contains 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
Show hidden characters
{ | |
"extends": "standard", | |
"plugins": [ | |
"standard", | |
"promise" | |
], | |
"env": { | |
"node": true, | |
"mocha": true, | |
"es6": true, |