├── .editorconfig ├── .gitignore ├── .vscode └── launch.json ├── README.md ├── doc ├── Promise2.xmind ├── README.md ├── img │ ├── 1.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── 5.png │ ├── 6.png │ ├── 7.png │ ├── 8.png │ ├── event.png │ ├── onfulfill.png │ ├── q.png │ ├── resolve.png │ └── same.png ├── promise.xmind ├── promise3.xmind ├── then_test.ts └── 概念.xmind ├── index.d.ts ├── package.json ├── src ├── core │ ├── const.ts │ └── promise.ts ├── index.html ├── index.ts └── utils │ ├── error.ts │ └── is.ts ├── tsconfig.json ├── tslint.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /dist 3 | .cache 4 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/README.md -------------------------------------------------------------------------------- /doc/Promise2.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/Promise2.xmind -------------------------------------------------------------------------------- /doc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/README.md -------------------------------------------------------------------------------- /doc/img/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/1.png -------------------------------------------------------------------------------- /doc/img/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/2.png -------------------------------------------------------------------------------- /doc/img/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/3.png -------------------------------------------------------------------------------- /doc/img/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/4.png -------------------------------------------------------------------------------- /doc/img/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/5.png -------------------------------------------------------------------------------- /doc/img/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/6.png -------------------------------------------------------------------------------- /doc/img/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/7.png -------------------------------------------------------------------------------- /doc/img/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/8.png -------------------------------------------------------------------------------- /doc/img/event.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/event.png -------------------------------------------------------------------------------- /doc/img/onfulfill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/onfulfill.png -------------------------------------------------------------------------------- /doc/img/q.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/q.png -------------------------------------------------------------------------------- /doc/img/resolve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/resolve.png -------------------------------------------------------------------------------- /doc/img/same.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/img/same.png -------------------------------------------------------------------------------- /doc/promise.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/promise.xmind -------------------------------------------------------------------------------- /doc/promise3.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/promise3.xmind -------------------------------------------------------------------------------- /doc/then_test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/then_test.ts -------------------------------------------------------------------------------- /doc/概念.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/doc/概念.xmind -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/index.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/package.json -------------------------------------------------------------------------------- /src/core/const.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/src/core/const.ts -------------------------------------------------------------------------------- /src/core/promise.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/src/core/promise.ts -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/src/index.html -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/utils/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/src/utils/error.ts -------------------------------------------------------------------------------- /src/utils/is.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/src/utils/is.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "tslint-config-standard-plus" 3 | } 4 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leer0911/myPromise/HEAD/yarn.lock --------------------------------------------------------------------------------