foxts 1.0.10 → 1.0.12

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/noop/index.d.ts CHANGED
@@ -6,4 +6,4 @@ declare const trueFn: Noop<true>;
6
6
  declare const falseFn: Noop<false>;
7
7
  declare const throwFn: Noop<never>;
8
8
 
9
- export { falseFn, noop, throwFn, trueFn };
9
+ export { type Noop, falseFn, noop, throwFn, trueFn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foxts",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Opinionated collection of common TypeScript utils by @SukkaW",
5
5
  "repository": {
6
6
  "url": "https://github.com/SukkaW/foxts"
@@ -65,6 +65,15 @@
65
65
  "require": "./bitwise/index.cjs",
66
66
  "default": "./bitwise/index.cjs"
67
67
  },
68
+ "./append-set-elements-to-array": {
69
+ "types": "./append-set-elements-to-array/index.d.ts",
70
+ "import": {
71
+ "types": "./append-set-elements-to-array/index.d.ts",
72
+ "default": "./append-set-elements-to-array/index.mjs"
73
+ },
74
+ "require": "./append-set-elements-to-array/index.cjs",
75
+ "default": "./append-set-elements-to-array/index.cjs"
76
+ },
68
77
  "./escape-string-regexp": {
69
78
  "types": "./escape-string-regexp/index.d.ts",
70
79
  "import": {
@@ -83,15 +92,6 @@
83
92
  "require": "./fast-string-array-join/index.cjs",
84
93
  "default": "./fast-string-array-join/index.cjs"
85
94
  },
86
- "./append-set-elements-to-array": {
87
- "types": "./append-set-elements-to-array/index.d.ts",
88
- "import": {
89
- "types": "./append-set-elements-to-array/index.d.ts",
90
- "default": "./append-set-elements-to-array/index.mjs"
91
- },
92
- "require": "./append-set-elements-to-array/index.cjs",
93
- "default": "./append-set-elements-to-array/index.cjs"
94
- },
95
95
  "./fifo": {
96
96
  "types": "./fifo/index.d.ts",
97
97
  "import": {
@@ -191,6 +191,15 @@
191
191
  "require": "./simple-string-hash/index.cjs",
192
192
  "default": "./simple-string-hash/index.cjs"
193
193
  },
194
+ "./tagged": {
195
+ "types": "./tagged/index.d.ts",
196
+ "import": {
197
+ "types": "./tagged/index.d.ts",
198
+ "default": "./tagged/index.mjs"
199
+ },
200
+ "require": "./tagged/index.cjs",
201
+ "default": "./tagged/index.cjs"
202
+ },
194
203
  "./wait": {
195
204
  "types": "./wait/index.d.ts",
196
205
  "import": {
@@ -0,0 +1 @@
1
+ "use strict";exports.tagged=function(e,...t){return e.reduce((e,r,u)=>e+r+(t[u]??""),"")};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @example import { tagged as html } from 'foxts/tagged';
3
+ */
4
+ declare function tagged(string: TemplateStringsArray, ...values: any[]): string;
5
+
6
+ export { tagged };
@@ -0,0 +1 @@
1
+ function e(r,...t){return r.reduce((e,r,n)=>e+r+(t[n]??""),"")}export{e as tagged};