@openbytes/ts-react-directives 0.1.0 → 0.1.2

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.
@@ -0,0 +1 @@
1
+ export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbytes/ts-react-directives",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "SkyCodr (aka: Dulan Sudasinghe)",
@@ -17,7 +17,7 @@
17
17
  "require": "./dist/ts-react-directives.umd.js"
18
18
  }
19
19
  },
20
- "types": "dist/types/index.d.ts",
20
+ "types": "dist/ts-react-directives.d.js",
21
21
  "dependencies": {
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -47,7 +47,7 @@
47
47
  "typescript": "~5.7.2",
48
48
  "typescript-eslint": "^8.22.0",
49
49
  "vite": "^6.1.0",
50
- "vite-plugin-static-copy": "^2.2.0",
50
+ "vite-plugin-dts": "^4.5.0",
51
51
  "vite-tsconfig-paths": "^5.1.4",
52
52
  "vitest": "^3.0.5"
53
53
  },
@@ -69,6 +69,7 @@
69
69
  "test": "vitest",
70
70
  "test:ui": "vitest --ui",
71
71
  "test:coverage": "vitest --coverage",
72
- "prepublish": "pnpm run build"
72
+ "prepublish": "pnpm run build",
73
+ "publish:registry": "pnpm publish --access public"
73
74
  }
74
75
  }
@@ -1,8 +0,0 @@
1
- declare type SwitchIfProps<T extends React.ReactNode = any> = React.PropsWithChildren<T>;
2
- declare type IfProps<T extends React.ReactNode = any> = React.PropsWithChildren<T> & { condition: boolean };
3
- declare type ElseIfProps<T extends React.ReactNode = any> = IfProps<T>;
4
- declare type ElseProps<T extends React.ReactNode = any> = React.PropsWithChildren<T>;
5
-
6
- declare type ValidatorFn = (children: Array<Exclude<React.ReactNode, boolean | null | undefined>>) => number[];
7
-
8
- declare type ErrorProps = { errors: number[] };