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.
Files changed (49) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +173 -0
  3. package/dist/Build.d.ts +1 -0
  4. package/dist/Checker/Checker.pure.d.ts +59 -0
  5. package/dist/Checker/Opinion/Opinion.pure.d.ts +25 -0
  6. package/dist/Checker/Opinion/pure.d.ts +3 -0
  7. package/dist/Checker/pure.d.ts +3 -0
  8. package/dist/Checker/test.d.ts +1 -0
  9. package/dist/Classify/Classify.pure.d.ts +42 -0
  10. package/dist/Classify/Classify.test.d.ts +1 -0
  11. package/dist/Classify/File.nodejs.d.ts +3 -0
  12. package/dist/Classify/File.test.d.ts +1 -0
  13. package/dist/Classify/barrel.nodejs.d.ts +2 -0
  14. package/dist/Classify/nodejs.d.ts +3 -0
  15. package/dist/Classify/pure.d.ts +3 -0
  16. package/dist/Classify/test.d.ts +2 -0
  17. package/dist/Examples/AlternativeCheckers.test.d.ts +1 -0
  18. package/dist/Examples/IsolateRuntimes.test.d.ts +1 -0
  19. package/dist/Examples/Lua.test.d.ts +1 -0
  20. package/dist/Examples/MultipleClassifiers.test.d.ts +1 -0
  21. package/dist/Examples/OnionDiamond.test.d.ts +1 -0
  22. package/dist/Examples/StrictOrdering.test.d.ts +1 -0
  23. package/dist/Examples/test.d.ts +6 -0
  24. package/dist/Lib/Array/Array.pure.d.ts +36 -0
  25. package/dist/Lib/Array/pure.d.ts +3 -0
  26. package/dist/Lib/Function/Curry.pure.d.ts +8 -0
  27. package/dist/Lib/Function/Flow.pure.d.ts +9 -0
  28. package/dist/Lib/Function/Pipe.pure.d.ts +20 -0
  29. package/dist/Lib/Function/pure.d.ts +3 -0
  30. package/dist/Lib/Option/Option.pure.d.ts +89 -0
  31. package/dist/Lib/Option/pure.d.ts +3 -0
  32. package/dist/Lib/Reader/Reader.pure.d.ts +14 -0
  33. package/dist/Lib/Reader/pure.d.ts +3 -0
  34. package/dist/Lib/Result/Result.pure.d.ts +24 -0
  35. package/dist/Lib/Result/pure.d.ts +3 -0
  36. package/dist/Lib/Set/Set.pure.d.ts +11 -0
  37. package/dist/Lib/Set/pure.d.ts +3 -0
  38. package/dist/Lib/pure.d.ts +6 -0
  39. package/dist/Partial_Order/PartialOrder.pure.d.ts +10 -0
  40. package/dist/Partial_Order/pure.d.ts +3 -0
  41. package/dist/Partial_Order/test.d.ts +1 -0
  42. package/dist/Plugin/Lua.nodejs.d.ts +7 -0
  43. package/dist/Plugin/barrel.nodejs.d.ts +2 -0
  44. package/dist/Plugin/esbuild.nodejs.d.ts +6 -0
  45. package/dist/Plugin/nodejs.d.ts +1 -0
  46. package/dist/nodejs.d.ts +5 -0
  47. package/dist/nodejs.js +2575 -0
  48. package/dist/test.d.ts +4 -0
  49. package/package.json +32 -0
@@ -0,0 +1,6 @@
1
+ export * from "./Array/pure.ts";
2
+ export * from "./Function/pure.ts";
3
+ export * from "./Option/pure.ts";
4
+ export * from "./Reader/pure.ts";
5
+ export * from "./Result/pure.ts";
6
+ export * from "./Set/pure.ts";
@@ -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,3 @@
1
+ import type { Key, PartialOrder as m } from "./PartialOrder.pure.ts";
2
+ export * as PartialOrder from "./PartialOrder.pure.ts";
3
+ export type PartialOrder<A extends Key> = m<A>;
@@ -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,2 @@
1
+ export * from "./esbuild.nodejs.ts";
2
+ export * as Lua from "./Lua.nodejs.ts";
@@ -0,0 +1,6 @@
1
+ import type { PluginBuild } from "esbuild";
2
+ import type { Checker } from "../nodejs.ts";
3
+ export declare const Esbuild: (check: Checker<void>) => {
4
+ name: string;
5
+ setup: (build: PluginBuild) => void;
6
+ };
@@ -0,0 +1 @@
1
+ export * as Plugin from "./barrel.nodejs.ts";
@@ -0,0 +1,5 @@
1
+ export * from "./Classify/nodejs.ts";
2
+ export * from "./Checker/pure.ts";
3
+ export * from "./Lib/pure.ts";
4
+ export * from "./Partial_Order/pure.ts";
5
+ export * from "./Plugin/nodejs.ts";