crx-rpc 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/id.js +1 -3
- package/package.json +1 -1
- package/src/id.ts +1 -5
package/dist/id.js
CHANGED
package/package.json
CHANGED
package/src/id.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// shared/utils/identifier.ts
|
|
2
|
-
|
|
3
|
-
import { randomId } from "./tool";
|
|
4
|
-
|
|
5
1
|
/**
|
|
6
2
|
* Identifier 类型,既携带类型信息,又在运行时能唯一标识。
|
|
7
3
|
*/
|
|
@@ -16,6 +12,6 @@ export interface Identifier<T> {
|
|
|
16
12
|
*/
|
|
17
13
|
export function createIdentifier<T>(key: string): Identifier<T> {
|
|
18
14
|
return {
|
|
19
|
-
key
|
|
15
|
+
key,
|
|
20
16
|
} as Identifier<T>;
|
|
21
17
|
}
|