@sl-utils/map 1.0.0 → 1.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sl-utils/map",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,6 +16,13 @@
16
16
  "ts-node": "^10.9.2",
17
17
  "typescript": "~5.7.2"
18
18
  },
19
+ "exports": {
20
+ "./package.json": "./package.json",
21
+ ".": {
22
+ "types": "./src/sl-utils-map.d.ts",
23
+ "import": "./src/index.js"
24
+ }
25
+ },
19
26
  "repository": {
20
27
  "type": "git",
21
28
  "url": "git+https://github.com/sl-utils/map.git"
@@ -29,4 +36,4 @@
29
36
  "publishConfig": {
30
37
  "access": "public"
31
38
  }
32
- }
39
+ }
package/src/index.js ADDED
@@ -0,0 +1 @@
1
+ export { MapCanvasDraw } from './map/canvas-draw'
@@ -0,0 +1,6 @@
1
+ declare module '@sl-utils/map' {
2
+ // 根据你的包实际导出的内容声明类型
3
+ export function mapFunction<T>(array: T[], callback: (item: T) => any): any[];
4
+ export const someValue: string;
5
+ // 添加其他导出...
6
+ }
File without changes