docs(mapping): fix typo

This commit is contained in:
ruanyf
2023-08-21 23:46:26 +08:00
parent 9919b9dc69
commit abcc074a2c

View File

@@ -342,7 +342,7 @@ type MyEvents<Events extends { kind: string }> = {
[E in Events as E['kind']]: (event: E) => void;
}
type Config = MyEvent<S|C>;
type Config = MyEvents<S|C>;
// 等同于
type Config = {
square: (event:S) => void;