purity-seal 0.0.0
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/LICENSE +674 -0
- package/README.md +173 -0
- package/dist/Build.d.ts +1 -0
- package/dist/Checker/Checker.pure.d.ts +59 -0
- package/dist/Checker/Opinion/Opinion.pure.d.ts +25 -0
- package/dist/Checker/Opinion/pure.d.ts +3 -0
- package/dist/Checker/pure.d.ts +3 -0
- package/dist/Checker/test.d.ts +1 -0
- package/dist/Classify/Classify.pure.d.ts +42 -0
- package/dist/Classify/Classify.test.d.ts +1 -0
- package/dist/Classify/File.nodejs.d.ts +3 -0
- package/dist/Classify/File.test.d.ts +1 -0
- package/dist/Classify/barrel.nodejs.d.ts +2 -0
- package/dist/Classify/nodejs.d.ts +3 -0
- package/dist/Classify/pure.d.ts +3 -0
- package/dist/Classify/test.d.ts +2 -0
- package/dist/Examples/AlternativeCheckers.test.d.ts +1 -0
- package/dist/Examples/IsolateRuntimes.test.d.ts +1 -0
- package/dist/Examples/Lua.test.d.ts +1 -0
- package/dist/Examples/MultipleClassifiers.test.d.ts +1 -0
- package/dist/Examples/OnionDiamond.test.d.ts +1 -0
- package/dist/Examples/StrictOrdering.test.d.ts +1 -0
- package/dist/Examples/test.d.ts +6 -0
- package/dist/Lib/Array/Array.pure.d.ts +36 -0
- package/dist/Lib/Array/pure.d.ts +3 -0
- package/dist/Lib/Function/Curry.pure.d.ts +8 -0
- package/dist/Lib/Function/Flow.pure.d.ts +9 -0
- package/dist/Lib/Function/Pipe.pure.d.ts +20 -0
- package/dist/Lib/Function/pure.d.ts +3 -0
- package/dist/Lib/Option/Option.pure.d.ts +89 -0
- package/dist/Lib/Option/pure.d.ts +3 -0
- package/dist/Lib/Reader/Reader.pure.d.ts +14 -0
- package/dist/Lib/Reader/pure.d.ts +3 -0
- package/dist/Lib/Result/Result.pure.d.ts +24 -0
- package/dist/Lib/Result/pure.d.ts +3 -0
- package/dist/Lib/Set/Set.pure.d.ts +11 -0
- package/dist/Lib/Set/pure.d.ts +3 -0
- package/dist/Lib/pure.d.ts +6 -0
- package/dist/Partial_Order/PartialOrder.pure.d.ts +10 -0
- package/dist/Partial_Order/pure.d.ts +3 -0
- package/dist/Partial_Order/test.d.ts +1 -0
- package/dist/Plugin/Lua.nodejs.d.ts +7 -0
- package/dist/Plugin/barrel.nodejs.d.ts +2 -0
- package/dist/Plugin/esbuild.nodejs.d.ts +6 -0
- package/dist/Plugin/nodejs.d.ts +1 -0
- package/dist/nodejs.d.ts +5 -0
- package/dist/nodejs.js +2575 -0
- package/dist/test.d.ts +4 -0
- package/package.json +32 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Result } from "../Lib/pure.ts";
|
|
2
|
+
export type Key = boolean | number | bigint | string | symbol;
|
|
3
|
+
type strictRelation = "<" | ">";
|
|
4
|
+
export type Relation = strictRelation | "=" | "?";
|
|
5
|
+
export type PartialOrder<T extends Key> = Map<T, Map<T, strictRelation>>;
|
|
6
|
+
export type Level<T> = T | T[];
|
|
7
|
+
export type Chain<T> = Level<T>[];
|
|
8
|
+
export declare const Make: <T extends Key>(chains: Chain<T>[]) => Result<PartialOrder<T>, string>;
|
|
9
|
+
export declare const Query: <T extends Key>(po: PartialOrder<T>, x: T, y: T) => Relation;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Checker } from "../Checker/pure.ts";
|
|
2
|
+
export type Options = {
|
|
3
|
+
readonly luaVersion: "5.1" | "5.2" | "5.3" | "LuaJIT";
|
|
4
|
+
/** Maps module name to filepath. */
|
|
5
|
+
readonly resolveModule: (raw: string) => string;
|
|
6
|
+
};
|
|
7
|
+
export declare const BuildDeps: (filenames: string[], bag: Options) => Promise<Checker.Deps[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Plugin from "./barrel.nodejs.ts";
|