timeback 0.0.0-alpha.1-alpha.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/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # timeback
2
+
3
+ To install dependencies:
4
+
5
+ ```bash
6
+ bun install
7
+ ```
8
+
9
+ To run:
10
+
11
+ ```bash
12
+ bun run index.ts
13
+ ```
14
+
15
+ This project was created using `bun init` in bun v1.3.2. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * A simple identity function that returns the input unchanged.
3
+ */
4
+ export declare function identity<T>(value: T): T;
5
+ /**
6
+ * A no-op function that does nothing.
7
+ */
8
+ export declare function noop(): void;
9
+ /**
10
+ * Returns true. Useful as a placeholder predicate.
11
+ */
12
+ export declare function yes(): boolean;
13
+ /**
14
+ * Returns false. Useful as a placeholder predicate.
15
+ */
16
+ export declare function no(): boolean;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAEvC;AAED;;GAEG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAAG;AAE/B;;GAEG;AACH,wBAAgB,GAAG,IAAI,OAAO,CAE7B;AAED;;GAEG;AACH,wBAAgB,EAAE,IAAI,OAAO,CAE5B"}
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ // src/index.ts
2
+ function identity(value) {
3
+ return value;
4
+ }
5
+ function noop() {}
6
+ function yes() {
7
+ return true;
8
+ }
9
+ function no() {
10
+ return false;
11
+ }
12
+ export {
13
+ yes,
14
+ noop,
15
+ no,
16
+ identity
17
+ };
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "timeback",
3
+ "version": "0.0.0-alpha.1-alpha.1",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.js"
9
+ }
10
+ },
11
+ "main": "dist/index.js",
12
+ "types": "dist/index.d.ts",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "build": "bun build.ts",
18
+ "release": "bun publish.ts",
19
+ "sort": "bunx sort-package-json"
20
+ },
21
+ "devDependencies": {
22
+ "@timeback/internal-utils": "0.0.0",
23
+ "@types/bun": "latest",
24
+ "@typescript/native-preview": "^7.0.0-dev.20251217.1",
25
+ "bun-plugin-dts": "^0.3.0"
26
+ },
27
+ "peerDependencies": {
28
+ "typescript": "^5"
29
+ }
30
+ }