@calcit/procs 0.12.46 → 0.12.48
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/.yarn/install-state.gz +0 -0
- package/RFCs/02-17-register-platform-api-rfc.md +1 -0
- package/RFCs/06-15-effects-graph-rfc.md +499 -0
- package/RFCs/README.md +20 -18
- package/editing-history/2026-06-09-1800-core-effect-tags.md +57 -0
- package/editing-history/2026-06-15-1500-effects-graph-mvp.md +30 -0
- package/editing-history/2026-06-16-1700-effects-graph-ste-tree.md +84 -0
- package/editing-history/2026-06-27-0052-cli-improvements.md +41 -0
- package/editing-history/2026-06-27-0202-docs-indexing-improvements.md +22 -0
- package/editing-history/2026-06-27-0315-file-splits.md +17 -0
- package/editing-history/2026-06-27-0416-agent-advanced-split.md +15 -0
- package/editing-history/202607040040-fix-format-cirru-edn-quoting.md +14 -0
- package/editing-history/archived/2026-06-20-1142-ts-declaration-d-mts.md +5 -0
- package/editing-history/archived/2026-06-29-0117-upgrade-doc-snapshot-migration.md +2 -0
- package/editing-history/archived/2026-06-29-calcit-cli.md +80 -0
- package/editing-history/archived/2026-06-29-typed-calcit-cli-schemas.md +23 -0
- package/editing-history/archived/20260630-duplication-analysis.md +116 -0
- package/lib/calcit-data.d.mts +39 -0
- package/lib/calcit.procs.d.mts +306 -0
- package/lib/custom-formatter.d.mts +8 -0
- package/lib/js-arity-helpers.d.mts +3 -0
- package/lib/js-buf-list.d.mts +11 -0
- package/lib/js-cirru.d.mts +23 -0
- package/lib/js-cirru.mjs +2 -4
- package/lib/js-enum.d.mts +11 -0
- package/lib/js-impl.d.mts +15 -0
- package/lib/js-list.d.mts +61 -0
- package/lib/js-map.d.mts +60 -0
- package/lib/js-primes.d.mts +15 -0
- package/lib/js-record.d.mts +36 -0
- package/lib/js-ref.d.mts +12 -0
- package/lib/js-set.d.mts +23 -0
- package/lib/js-struct.d.mts +13 -0
- package/lib/js-tag-helpers.d.mts +2 -0
- package/lib/js-trait.d.mts +9 -0
- package/lib/js-tuple.d.mts +18 -0
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/ts-src/js-cirru.mts +2 -4
- /package/editing-history/{2026-0213-1841-trait-origin-structural-eq.md → 2026-02-13-1841-trait-origin-structural-eq.md} +0 -0
- /package/editing-history/{2026-0214-2050-js-codegen-recursion-tag-migration.md → 2026-02-14-2050-js-codegen-recursion-tag-migration.md} +0 -0
- /package/editing-history/{2026-0214-2358-emit-js-modularization-shift-left.md → 2026-02-14-2358-emit-js-modularization-shift-left.md} +0 -0
- /package/editing-history/{2026-0215-0000-diagnostics-consolidated.md → 2026-02-15-0000-diagnostics-consolidated.md} +0 -0
- /package/editing-history/{2026-0215-1941-macro-diagnostics-refinement.md → 2026-02-15-1941-macro-diagnostics-refinement.md} +0 -0
- /package/editing-history/{2026-0216-2043-core-api-docs-cleanup.md → 2026-02-16-2043-core-api-docs-cleanup.md} +0 -0
- /package/editing-history/{2026-0223-0834-migrate-to-defstruct.md → 2026-02-23-0834-migrate-to-defstruct.md} +0 -0
- /package/editing-history/{2026-0223-2321-ns-imports-code-fixes.md → 2026-02-23-2321-ns-imports-code-fixes.md} +0 -0
- /package/editing-history/{2026-0225-0002-language-behavior-eval-mode.md → 2026-02-25-0002-language-behavior-eval-mode.md} +0 -0
- /package/editing-history/{2026-0225-0111-guidebook-no-check-block-upgrades.md → 2026-02-25-0111-guidebook-no-check-block-upgrades.md} +0 -0
- /package/editing-history/{2026-0225-0113-runtime-type-validation-and-macro-quoting.md → 2026-02-25-0113-runtime-type-validation-and-macro-quoting.md} +0 -0
- /package/editing-history/{2026-0225-1131-check-md-eval-improvements.md → 2026-02-25-1131-check-md-eval-improvements.md} +0 -0
- /package/editing-history/{2026-0226-1324-check-md-inprocess-cache-and-path-labels.md → 2026-02-26-1324-check-md-inprocess-cache-and-path-labels.md} +0 -0
- /package/editing-history/{2026-0227-1640-unify-markdown-readers.md → 2026-02-27-1640-unify-markdown-readers.md} +0 -0
- /package/editing-history/{2026-0227-1958-tree-rewrite-command-and-reference-model.md → 2026-02-27-1958-tree-rewrite-command-and-reference-model.md} +0 -0
- /package/editing-history/{2026-0227-2200-split-def-command.md → 2026-02-27-2200-split-def-command.md} +0 -0
- /package/editing-history/{2026-0227-2212-tree-raise-wrap.md → 2026-02-27-2212-tree-raise-wrap.md} +0 -0
- /package/editing-history/{2026-0227-2223-calcit-agent-docs-optimize.md → 2026-02-27-2223-calcit-agent-docs-optimize.md} +0 -0
- /package/editing-history/{2026-0301-0212-query-search-entry-and-ffi-warning.md → 2026-03-01-0212-query-search-entry-and-ffi-warning.md} +0 -0
- /package/editing-history/{2026-0303-1934-check-types-and-core-annotations.md → 2026-03-03-1934-check-types-and-core-annotations.md} +0 -0
- /package/editing-history/{2026-0304-0000-generics-fn-typevar-identity.md → 2026-03-04-0000-generics-fn-typevar-identity.md} +0 -0
- /package/editing-history/{2026-0304-1331-tag-call-warning-and-dot-access-migration.md → 2026-03-04-1331-tag-call-warning-and-dot-access-migration.md} +0 -0
- /package/editing-history/{2026-0304-1548-impl-new-dot-method-input-and-doc-hints.md → 2026-03-04-1548-impl-new-dot-method-input-and-doc-hints.md} +0 -0
- /package/editing-history/{2026-0304-1645-calcit-eq-contract-refactor-and-macro-tests.md → 2026-03-04-1645-calcit-eq-contract-refactor-and-macro-tests.md} +0 -0
- /package/editing-history/{2026-0304-2200-assert-type-assert-traits-composable-runtime-checks.md → 2026-03-04-2200-assert-type-assert-traits-composable-runtime-checks.md} +0 -0
- /package/editing-history/{2026-0305-0042-type-inference-argtypes-and-core-hints.md → 2026-03-05-0042-type-inference-argtypes-and-core-hints.md} +0 -0
- /package/editing-history/{2026-0305-0115-calcit-core-generic-refinements.md → 2026-03-05-0115-calcit-core-generic-refinements.md} +0 -0
- /package/editing-history/{2026-0305-1930-schema-migration-cr-edit.md → 2026-03-05-1930-schema-migration-cr-edit.md} +0 -0
- /package/editing-history/{2026-0305-1939-query-schema-adaptation.md → 2026-03-05-1939-query-schema-adaptation.md} +0 -0
- /package/editing-history/{2026-0306-0120-schema-hint-migration-batch.md → 2026-03-06-0120-schema-hint-migration-batch.md} +0 -0
- /package/editing-history/{2026-0306-1416-core-macro-schema-migration.md → 2026-03-06-1416-core-macro-schema-migration.md} +0 -0
- /package/editing-history/{2026-0306-1552-core-schema-and-hintfn-migration.md → 2026-03-06-1552-core-schema-and-hintfn-migration.md} +0 -0
- /package/editing-history/{2026-0306-1936-schema-normalization-and-preprocess-preload.md → 2026-03-06-1936-schema-normalization-and-preprocess-preload.md} +0 -0
- /package/editing-history/{2026-0307-0000-migrate-hint-fn-to-schema.md → 2026-03-07-0000-migrate-hint-fn-to-schema.md} +0 -0
- /package/editing-history/{2026-0307-0000-remove-enum-prototype-field.md → 2026-03-07-0000-remove-enum-prototype-field.md} +0 -0
- /package/editing-history/{2026-0307-0000-schema-args-type-enforcement.md → 2026-03-07-0000-schema-args-type-enforcement.md} +0 -0
- /package/editing-history/{2026-0307-0142-unit-type-and-builtin-schemas.md → 2026-03-07-0142-unit-type-and-builtin-schemas.md} +0 -0
- /package/editing-history/{2026-0307-1652-decouple-snapshot-schema-to-calcit-type.md → 2026-03-07-1652-decouple-snapshot-schema-to-calcit-type.md} +0 -0
- /package/editing-history/{2026-0307-1821-snapshot-schema-validation.md → 2026-03-07-1821-snapshot-schema-validation.md} +0 -0
- /package/editing-history/{2026-0307-1959-schema-def-kind-arity-validation.md → 2026-03-07-1959-schema-def-kind-arity-validation.md} +0 -0
- /package/editing-history/{2026-0308-0031-schema-generics-quote-normalization.md → 2026-03-08-0031-schema-generics-quote-normalization.md} +0 -0
- /package/editing-history/{2026-0308-1905-schema-typeref-and-assert-migration.md → 2026-03-08-1905-schema-typeref-and-assert-migration.md} +0 -0
- /package/editing-history/{2026-0308-2033-schema-wrapper-migration.md → 2026-03-08-2033-schema-wrapper-migration.md} +0 -0
- /package/editing-history/{2026-0308-2315-late-schema-cleanup-and-warning-compat.md → 2026-03-08-2315-late-schema-cleanup-and-warning-compat.md} +0 -0
- /package/editing-history/{2026-0309-1753-schema-type-fail-tests.md → 2026-03-09-1753-schema-type-fail-tests.md} +0 -0
- /package/editing-history/{2026-0310-1040-edit-schema-primitive-tag-support.md → 2026-03-10-1040-edit-schema-primitive-tag-support.md} +0 -0
- /package/editing-history/{2026-0310-1754-ns-entry-snapshot-migration.md → 2026-03-10-1754-ns-entry-snapshot-migration.md} +0 -0
- /package/editing-history/{2026-0313-2216-validate-struct-type-arg-arity.md → 2026-03-13-2216-validate-struct-type-arg-arity.md} +0 -0
- /package/editing-history/{2026-0316-2353-runtime-boundary-cleanup.md → 2026-03-16-2353-runtime-boundary-cleanup.md} +0 -0
- /package/editing-history/{2026-0317-0150-runtime-boundary-lookup-cleanup.md → 2026-03-17-0150-runtime-boundary-lookup-cleanup.md} +0 -0
- /package/editing-history/{2026-0320-0116-json-builtins-and-runtime-docs.md → 2026-03-20-0116-json-builtins-and-runtime-docs.md} +0 -0
- /package/editing-history/{2026-0326-2013-docs-frontmatter-and-module-search.md → 2026-03-26-2013-docs-frontmatter-and-module-search.md} +0 -0
- /package/editing-history/{2026-0412-1524-js-codegen-map-to-record.md → 2026-04-12-1524-js-codegen-map-to-record.md} +0 -0
- /package/editing-history/{2026-0412-1549-map-to-record-field-validation.md → 2026-04-12-1549-map-to-record-field-validation.md} +0 -0
- /package/editing-history/{2026-0413-1600-tuple-to-enum-rewrite.md → 2026-04-13-1600-tuple-to-enum-rewrite.md} +0 -0
- /package/editing-history/{2026-0413-2309-typeslot-enum-compile-safety.md → 2026-04-13-2309-typeslot-enum-compile-safety.md} +0 -0
- /package/editing-history/{2026-0414-1500-loose-record-syntax.md → 2026-04-14-1500-loose-record-syntax.md} +0 -0
- /package/editing-history/{2026-0414-2259-bidir-type-check-refactor.md → 2026-04-14-2259-bidir-type-check-refactor.md} +0 -0
- /package/editing-history/{2026-0415-0120-match-syntax-exhaustiveness.md → 2026-04-15-0120-match-syntax-exhaustiveness.md} +0 -0
- /package/editing-history/{202604151211-record-nth-optimization.md → 2026-04-15-1211-record-nth-optimization.md} +0 -0
- /package/editing-history/{20260416-1936-predicate-narrowing-expansion.md → 2026-04-16-1936-predicate-narrowing-expansion.md} +0 -0
- /package/editing-history/{202604170132-monomorphize-map-filter.md → 2026-04-17-0132-monomorphize-map-filter.md} +0 -0
- /package/editing-history/{202604170135-monomorphize-includes-reverse.md → 2026-04-17-0135-monomorphize-includes-reverse.md} +0 -0
- /package/editing-history/{202604170140-fold-type-predicates.md → 2026-04-17-0140-fold-type-predicates.md} +0 -0
- /package/editing-history/{202604170154-generic-dispatch-records-tuples.md → 2026-04-17-0154-generic-dispatch-records-tuples.md} +0 -0
- /package/editing-history/{202604170520-simplify-generic-defns-via-method-dispatch.md → 2026-04-17-0520-simplify-generic-defns-via-method-dispatch.md} +0 -0
- /package/editing-history/{202605210055-tree-show-cr-config-and-edit-cleanup.md → 2026-05-21-0055-tree-show-cr-config-and-edit-cleanup.md} +0 -0
- /package/editing-history/{202605312052-macro-schema-roundtrip-and-weak-types.md → 2026-05-31-2052-macro-schema-roundtrip-and-weak-types.md} +0 -0
- /package/editing-history/{202605312105-map-generic-weak-types-followup.md → 2026-05-31-2105-map-generic-weak-types-followup.md} +0 -0
- /package/editing-history/{2026-0601-0003-update-callback-field-specialization.md → 2026-06-01-0003-update-callback-field-specialization.md} +0 -0
- /package/editing-history/{2026-0601-2317-data-definition-where-bounds.md → 2026-06-01-2317-data-definition-where-bounds.md} +0 -0
- /package/editing-history/{2026-0602-0114-data-definition-where-macro-followup.md → 2026-06-02-0114-data-definition-where-macro-followup.md} +0 -0
- /package/editing-history/{2026-0603-check-md-edn-errors.md → 2026-06-03-0000-check-md-edn-errors.md} +0 -0
- /package/editing-history/{2026-0603-1600-check-md-entry-modules.md → 2026-06-03-1600-check-md-entry-modules.md} +0 -0
- /package/editing-history/{2026-0604-check-md-app-main-init.md → 2026-06-04-0000-check-md-app-main-init.md} +0 -0
- /package/editing-history/{202606042218-compiled-executable-runtime-backfill.md → 2026-06-04-2218-compiled-executable-runtime-backfill.md} +0 -0
- /package/editing-history/{2026-0609-with-type-slot-scoped-binding.md → 2026-06-09-0000-with-type-slot-scoped-binding.md} +0 -0
- /package/editing-history/{2026-0609-1241-remove-bind-type.md → 2026-06-09-1241-remove-bind-type.md} +0 -0
- /package/editing-history/{2026-0610-1200-get-def-doc-schema-builtin.md → 2026-06-10-1200-get-def-doc-schema-builtin.md} +0 -0
- /package/editing-history/{2025-0412-1453-map-to-record-rewrite.md → archived/2025-04-12-1453-map-to-record-rewrite.md} +0 -0
- /package/editing-history/{202504160117-wasm-codegen-and-catalog-update.md → archived/2025-04-16-0117-wasm-codegen-and-catalog-update.md} +0 -0
- /package/editing-history/{202507160207-wasm-encoder-migration.md → archived/2025-07-16-0207-wasm-encoder-migration.md} +0 -0
- /package/editing-history/{202507161633-wasm-data-structures.md → archived/2025-07-16-1633-wasm-data-structures.md} +0 -0
- /package/editing-history/{2026-0213-1926-docs-tests-followup.md → archived/2026-02-13-1926-docs-tests-followup.md} +0 -0
- /package/editing-history/{2026-0216-2128-docs-smoke-and-trait-errors.md → archived/2026-02-16-2128-docs-smoke-and-trait-errors.md} +0 -0
- /package/editing-history/{2026-0225-1234-watch-mode-default-once.md → archived/2026-02-25-1234-watch-mode-default-once.md} +0 -0
- /package/editing-history/{2026-0307-1302-calcit-agent-docs-update.md → archived/2026-03-07-1302-calcit-agent-docs-update.md} +0 -0
- /package/editing-history/{2026-0309-1819-add-test-fail-script.md → archived/2026-03-09-1819-add-test-fail-script.md} +0 -0
- /package/editing-history/{2026-0309-1944-split-type-fail-tests.md → archived/2026-03-09-1944-split-type-fail-tests.md} +0 -0
- /package/editing-history/{2026-0316-1449-profiling-tools-reorg.md → archived/2026-03-16-1449-profiling-tools-reorg.md} +0 -0
- /package/editing-history/{2026-0317-2026-afternoon-runtime-boundary-optimization-summary.md → archived/2026-03-17-2026-afternoon-runtime-boundary-optimization-summary.md} +0 -0
- /package/editing-history/{2026-0318-1802-tips-level-and-overwrite-schema-preservation.md → archived/2026-03-18-1802-tips-level-and-overwrite-schema-preservation.md} +0 -0
- /package/editing-history/{2026-0320-1229-query-window-3-with-parent-preview.md → archived/2026-03-20-1229-query-window-3-with-parent-preview.md} +0 -0
- /package/editing-history/{2026-0323-1137-command-echo-tool-output-cleanup.md → archived/2026-03-23-1137-command-echo-tool-output-cleanup.md} +0 -0
- /package/editing-history/{2026-0410-0011-snapshot-empty-version-pipe-marker.md → archived/2026-04-10-0011-snapshot-empty-version-pipe-marker.md} +0 -0
- /package/editing-history/{202604160131-wasm-math-and-test-integration.md → archived/2026-04-16-0131-wasm-math-and-test-integration.md} +0 -0
- /package/editing-history/{202604161507-wasm-data-structures-and-rfc-rename.md → archived/2026-04-16-1507-wasm-data-structures-and-rfc-rename.md} +0 -0
- /package/editing-history/{202604161520-wasm-bitwise-and-match.md → archived/2026-04-16-1520-wasm-bitwise-and-match.md} +0 -0
- /package/editing-history/{202604161542-wasm-cross-ns-host-imports.md → archived/2026-04-16-1542-wasm-cross-ns-host-imports.md} +0 -0
- /package/editing-history/{20260417-0026-wasm-rest-args.md → archived/2026-04-17-0026-wasm-rest-args.md} +0 -0
- /package/editing-history/{202604170048-wasm-type-of.md → archived/2026-04-17-0048-wasm-type-of.md} +0 -0
- /package/editing-history/{202604170051-wasm-derived-predicates.md → archived/2026-04-17-0051-wasm-derived-predicates.md} +0 -0
- /package/editing-history/{202604172316-wasm-do-println-fixes.md → archived/2026-04-17-2316-wasm-do-println-fixes.md} +0 -0
- /package/editing-history/{202604181208-split-emit-wasm-and-bump-version.md → archived/2026-04-18-1208-split-emit-wasm-and-bump-version.md} +0 -0
- /package/editing-history/{202604181430-wasm-list-match-and-method-dispatch.md → archived/2026-04-18-1430-wasm-list-match-and-method-dispatch.md} +0 -0
- /package/editing-history/{202604182041-cr-wasm-split-and-runtime-stability.md → archived/2026-04-18-2041-cr-wasm-split-and-runtime-stability.md} +0 -0
- /package/editing-history/{202604182045-v0.12.23-ci-wasm-fix.md → archived/2026-04-18-2045-v0.12.23-ci-wasm-fix.md} +0 -0
- /package/editing-history/{202604211818-wasm-string-ops-v2.md → archived/2026-04-21-1818-wasm-string-ops-v2.md} +0 -0
- /package/editing-history/{202604212332-split-emit-wasm.md → archived/2026-04-21-2332-split-emit-wasm.md} +0 -0
- /package/editing-history/{2026-0422-0114-wasm-hof-intercepts-and-set-intersection.md → archived/2026-04-22-0114-wasm-hof-intercepts-and-set-intersection.md} +0 -0
- /package/editing-history/{2026-0422-0136-wasm-enum-tuple-bool-str-fixes.md → archived/2026-04-22-0136-wasm-enum-tuple-bool-str-fixes.md} +0 -0
- /package/editing-history/{202604221340-wasm-map-diff-new-and-let-intercept.md → archived/2026-04-22-1340-wasm-map-diff-new-and-let-intercept.md} +0 -0
- /package/editing-history/{202604231419-v0.12.26-wasm-bisection-fixes.md → archived/2026-04-23-1419-v0.12.26-wasm-bisection-fixes.md} +0 -0
- /package/editing-history/{202604231645-release-conventions.md → archived/2026-04-23-1645-release-conventions.md} +0 -0
- /package/editing-history/{202604251940-wasm-suite-multi-module-entry.md → archived/2026-04-25-1940-wasm-suite-multi-module-entry.md} +0 -0
- /package/editing-history/{202604252003-wasm-method-includes-string-and-set-refactor.md → archived/2026-04-25-2003-wasm-method-includes-string-and-set-refactor.md} +0 -0
- /package/editing-history/{202604252010-wasm-suite-add-fn-lens-edn.md → archived/2026-04-25-2010-wasm-suite-add-fn-lens-edn.md} +0 -0
- /package/editing-history/{202604252051-display-by.md → archived/2026-04-25-2051-display-by.md} +0 -0
- /package/editing-history/{202604281728-fix-gensym-stable.md → archived/2026-04-28-1728-fix-gensym-stable.md} +0 -0
- /package/editing-history/{202604291400-fix-bind-type-precompile.md → archived/2026-04-29-1400-fix-bind-type-precompile.md} +0 -0
- /package/editing-history/{2026-0526-0957-match-docs-check-md.md → archived/2026-05-26-0957-match-docs-check-md.md} +0 -0
- /package/editing-history/{202605312059-ci-docs-test-and-fn-helper-tightening.md → archived/2026-05-31-2059-ci-docs-test-and-fn-helper-tightening.md} +0 -0
- /package/editing-history/{2026-0601-0005-release-0.12.36.md → archived/2026-06-01-0005-release-0.12.36.md} +0 -0
- /package/editing-history/{2026-0601-2230-enum-struct-payload-docs.md → archived/2026-06-01-2230-enum-struct-payload-docs.md} +0 -0
- /package/editing-history/{2026-0603-1620-release-0.12.38.md → archived/2026-06-03-1620-release-0.12.38.md} +0 -0
- /package/editing-history/{2026-0604-release-0.12.39.md → archived/2026-06-04-0000-release-0.12.39.md} +0 -0
- /package/editing-history/{202606042230-release-0.12.40.md → archived/2026-06-04-2230-release-0.12.40.md} +0 -0
- /package/editing-history/{202606121525-weak-types-dots-format.md → archived/2026-06-12-1525-weak-types-dots-format.md} +0 -0
- /package/{202606131200_primitive_schema_tags.md → editing-history/archived/2026-06-13-1200-primitive_schema_tags.md} +0 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
export declare const calcit_version: string;
|
|
2
|
+
export declare const calcit_package_json: {
|
|
3
|
+
name: string;
|
|
4
|
+
version: string;
|
|
5
|
+
main: string;
|
|
6
|
+
devDependencies: {
|
|
7
|
+
"@types/node": string;
|
|
8
|
+
typescript: string;
|
|
9
|
+
};
|
|
10
|
+
scripts: {
|
|
11
|
+
compile: string;
|
|
12
|
+
"procs-link": string;
|
|
13
|
+
"cp-mac": string;
|
|
14
|
+
eval: string;
|
|
15
|
+
"fmt-rs": string;
|
|
16
|
+
"lint-rs": string;
|
|
17
|
+
"test-rs": string;
|
|
18
|
+
"test-fail": string;
|
|
19
|
+
"test-snippets": string;
|
|
20
|
+
"bench-recur-smoke": string;
|
|
21
|
+
"check-smooth": string;
|
|
22
|
+
"check-all": string;
|
|
23
|
+
"try-all": string;
|
|
24
|
+
"try-rs": string;
|
|
25
|
+
"warn-dyn-method": string;
|
|
26
|
+
"try-js-brk": string;
|
|
27
|
+
"try-js": string;
|
|
28
|
+
"try-ir": string;
|
|
29
|
+
"try-wasm": string;
|
|
30
|
+
};
|
|
31
|
+
repository: {
|
|
32
|
+
type: string;
|
|
33
|
+
url: string;
|
|
34
|
+
};
|
|
35
|
+
dependencies: {
|
|
36
|
+
"@calcit/ternary-tree": string;
|
|
37
|
+
"@cirru/parser.ts": string;
|
|
38
|
+
"@cirru/writer.ts": string;
|
|
39
|
+
};
|
|
40
|
+
packageManager: string;
|
|
41
|
+
};
|
|
42
|
+
import { ICirruNode } from "@cirru/parser.ts";
|
|
43
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
44
|
+
import { CalcitSymbol, CalcitTag, CalcitFn, CalcitRecur } from "./calcit-data.mjs";
|
|
45
|
+
import { CalcitRef } from "./js-ref.mjs";
|
|
46
|
+
import { CalcitRecord } from "./js-record.mjs";
|
|
47
|
+
import { CalcitImpl } from "./js-impl.mjs";
|
|
48
|
+
import { CalcitStruct } from "./js-struct.mjs";
|
|
49
|
+
import { CalcitEnum } from "./js-enum.mjs";
|
|
50
|
+
import { CalcitTrait } from "./js-trait.mjs";
|
|
51
|
+
export * from "./calcit-data.mjs";
|
|
52
|
+
export * from "./js-record.mjs";
|
|
53
|
+
export * from "./js-impl.mjs";
|
|
54
|
+
export * from "./js-struct.mjs";
|
|
55
|
+
export * from "./js-enum.mjs";
|
|
56
|
+
export * from "./js-map.mjs";
|
|
57
|
+
export * from "./js-list.mjs";
|
|
58
|
+
export * from "./js-set.mjs";
|
|
59
|
+
export * from "./js-primes.mjs";
|
|
60
|
+
export * from "./js-tuple.mjs";
|
|
61
|
+
export * from "./js-trait.mjs";
|
|
62
|
+
export * from "./custom-formatter.mjs";
|
|
63
|
+
export * from "./js-cirru.mjs";
|
|
64
|
+
export * from "./js-arity-helpers.mjs";
|
|
65
|
+
export * from "./js-tag-helpers.mjs";
|
|
66
|
+
export * from "./js-buf-list.mjs";
|
|
67
|
+
export { _$n_compare } from "./js-primes.mjs";
|
|
68
|
+
import { CalcitList, CalcitSliceList } from "./js-list.mjs";
|
|
69
|
+
import { CalcitMap, CalcitSliceMap } from "./js-map.mjs";
|
|
70
|
+
import { CalcitSet } from "./js-set.mjs";
|
|
71
|
+
import { CalcitTuple } from "./js-tuple.mjs";
|
|
72
|
+
import { CalcitCirruQuote } from "./js-cirru.mjs";
|
|
73
|
+
export declare let type_of: (x: any) => CalcitTag;
|
|
74
|
+
export declare let _$n_trait_$o__$o_new: (name: CalcitValue, methods: CalcitValue) => CalcitTrait;
|
|
75
|
+
export declare let _$n_assert_traits: (value: CalcitValue, traitDef: CalcitValue) => CalcitValue;
|
|
76
|
+
export declare let defstruct: (name: CalcitValue, ...entries: CalcitValue[]) => CalcitStruct;
|
|
77
|
+
export declare let defenum: (name: CalcitValue, ...variants: CalcitValue[]) => CalcitEnum;
|
|
78
|
+
export declare let _$n_impl_$o__$o_new: (name: CalcitValue, ...pairs: CalcitValue[]) => CalcitImpl;
|
|
79
|
+
export declare let _$n_struct_$o__$o_new: (name: CalcitValue, ...entries: CalcitValue[]) => CalcitStruct;
|
|
80
|
+
export declare let _$n_enum_$o__$o_new: (name: CalcitValue, ...variants: CalcitValue[]) => CalcitEnum;
|
|
81
|
+
export declare let print: (...xs: CalcitValue[]) => void;
|
|
82
|
+
export declare function _$n_list_$o_count(x: CalcitValue): number;
|
|
83
|
+
export declare function _$n_str_$o_count(x: CalcitValue): number;
|
|
84
|
+
export declare function _$n_map_$o_count(x: CalcitValue): number;
|
|
85
|
+
export declare function _$n_record_$o_count(x: CalcitValue): number;
|
|
86
|
+
export declare function _$n_record_$o_field_tag(x: CalcitValue, idx: CalcitValue): CalcitTag;
|
|
87
|
+
export declare function _$n_record_$o_nth(x: CalcitValue, idx: CalcitValue): CalcitValue;
|
|
88
|
+
export declare function _$n_set_$o_count(x: CalcitValue): number;
|
|
89
|
+
export declare let _$L_: (...xs: CalcitValue[]) => CalcitSliceList;
|
|
90
|
+
export declare let _SQUO_: (...xs: CalcitValue[]) => CalcitSliceList;
|
|
91
|
+
export declare let _$n__$M_: (...xs: CalcitValue[]) => CalcitSliceMap;
|
|
92
|
+
export declare let defatom: (path: string, x: CalcitValue) => CalcitValue;
|
|
93
|
+
export { atom } from "./js-ref.mjs";
|
|
94
|
+
export declare let peekDefatom: (path: string) => CalcitRef;
|
|
95
|
+
export declare let _$n_atom_$o_deref: (x: CalcitRef) => CalcitValue;
|
|
96
|
+
export declare let _$n__ADD_: (x: number, y: number) => number;
|
|
97
|
+
export declare let _$n__$s_: (x: number, y: number) => number;
|
|
98
|
+
export declare let _$n_str: (x: CalcitValue) => string;
|
|
99
|
+
export declare let _$n_str_$o_contains_$q_: (xs: CalcitValue, x: CalcitValue) => boolean;
|
|
100
|
+
export declare let _$n_list_$o_contains_$q_: (xs: CalcitValue, x: CalcitValue) => boolean;
|
|
101
|
+
export declare let _$n_map_$o_contains_$q_: (xs: CalcitValue, x: CalcitValue) => boolean;
|
|
102
|
+
export declare let _$n_record_$o_contains_$q_: (xs: CalcitValue, x: CalcitValue) => boolean;
|
|
103
|
+
export declare let _$n_str_$o_includes_$q_: (xs: CalcitValue, x: CalcitValue) => boolean;
|
|
104
|
+
export declare let _$n_list_$o_includes_$q_: (xs: CalcitValue, x: CalcitValue) => boolean;
|
|
105
|
+
export declare let _$n_map_$o_includes_$q_: (xs: CalcitValue, x: CalcitValue) => boolean;
|
|
106
|
+
export declare let _$n_set_$o_includes_$q_: (xs: CalcitValue, x: CalcitValue) => boolean;
|
|
107
|
+
export declare let _$n_str_$o_nth: (xs: CalcitValue, k: CalcitValue) => string;
|
|
108
|
+
export declare let _$n_list_$o_nth: (xs: CalcitValue, k: CalcitValue) => CalcitValue;
|
|
109
|
+
export declare let _$n_tuple_$o_nth: (xs: CalcitValue, k: CalcitValue) => CalcitValue;
|
|
110
|
+
export declare let _$n_tuple_$o_count: (xs: CalcitValue) => number;
|
|
111
|
+
export declare let _$n_tuple_$o_impls: (x: CalcitTuple) => CalcitSliceList;
|
|
112
|
+
export declare let _$n_tuple_$o_params: (x: CalcitTuple) => CalcitSliceList;
|
|
113
|
+
export declare let _$n_tuple_$o_with_impls: (x: CalcitTuple, y: CalcitValue) => CalcitTuple;
|
|
114
|
+
export declare let _$n_tuple_$o_impl_traits: (x: CalcitValue, ...traits: CalcitValue[]) => CalcitTuple;
|
|
115
|
+
export declare let _$n_tuple_$o_enum: (x: CalcitTuple) => CalcitEnum;
|
|
116
|
+
export declare let _$n_tuple_$o_enum_has_variant_$q_: (enumPrototype: CalcitValue, variantTag: CalcitTag) => boolean;
|
|
117
|
+
export declare let _$n_tuple_$o_enum_has_variant: (enumPrototype: CalcitValue, variantTag: CalcitTag) => boolean;
|
|
118
|
+
export declare let _$n_tuple_$o_enum_variant_arity: (enumPrototype: CalcitValue, variantTag: CalcitTag) => number;
|
|
119
|
+
export declare let _$n_tuple_$o_validate_enum: (tuple: CalcitValue, tag: CalcitValue) => CalcitValue;
|
|
120
|
+
export declare let _$n_record_$o_get: (xs: CalcitValue, k: CalcitTag) => CalcitValue;
|
|
121
|
+
export declare let _$n_list_$o_assoc: (xs: CalcitValue, k: CalcitValue, v: CalcitValue) => CalcitList;
|
|
122
|
+
export declare let _$n_tuple_$o_assoc: (xs: CalcitValue, k: CalcitValue, v: CalcitValue) => CalcitTuple;
|
|
123
|
+
export declare let _$n_map_$o_assoc: (xs: CalcitValue, ...args: CalcitValue[]) => CalcitMap | CalcitSliceMap;
|
|
124
|
+
export declare let _$n_record_$o_assoc: (xs: CalcitValue, k: CalcitValue, v: CalcitValue) => CalcitRecord;
|
|
125
|
+
export declare let _$n_record_$o_impls: (xs: CalcitValue) => CalcitSliceList;
|
|
126
|
+
export declare let _$n_record_$o_impl_traits: (xs: CalcitValue, ...traits: CalcitValue[]) => CalcitRecord;
|
|
127
|
+
export declare let _$n_struct_$o_impl_traits: (xs: CalcitValue, ...traits: CalcitValue[]) => CalcitStruct;
|
|
128
|
+
export declare let _$n_enum_$o_impl_traits: (xs: CalcitValue, ...traits: CalcitValue[]) => CalcitRecord | CalcitEnum;
|
|
129
|
+
export declare let _$n_impl_$o_origin: (impl: CalcitValue) => CalcitValue;
|
|
130
|
+
export declare let _$n_impl_$o_get: (impl: CalcitValue, name: CalcitValue) => CalcitValue;
|
|
131
|
+
export declare let _$n_impl_$o_nth: (impl: CalcitValue, index: CalcitValue) => CalcitValue;
|
|
132
|
+
export declare let _$n_list_$o_assoc_before: (xs: CalcitList | CalcitSliceList, k: number, v: CalcitValue) => CalcitList;
|
|
133
|
+
export declare let _$n_list_$o_assoc_after: (xs: CalcitSliceList, k: number, v: CalcitValue) => CalcitList | CalcitSliceList;
|
|
134
|
+
export declare let _$n_list_$o_dissoc: (xs: CalcitValue | CalcitSliceList, k: CalcitValue) => CalcitList | CalcitSliceList;
|
|
135
|
+
export declare let _$n_map_$o_dissoc: (xs: CalcitValue, ...args: CalcitValue[]) => CalcitMap | CalcitSliceMap;
|
|
136
|
+
export declare let reset_$x_: (a: CalcitRef, v: CalcitValue) => null;
|
|
137
|
+
export declare let add_watch: (a: CalcitRef, k: CalcitTag, f: CalcitFn) => null;
|
|
138
|
+
export declare let remove_watch: (a: CalcitRef, k: CalcitTag) => null;
|
|
139
|
+
export declare let range: (n: number, m: number, step?: number) => CalcitSliceList | CalcitList;
|
|
140
|
+
export declare function _$n_list_$o_empty_$q_(xs: CalcitValue): boolean;
|
|
141
|
+
export declare function _$n_str_$o_empty_$q_(xs: CalcitValue): boolean;
|
|
142
|
+
export declare function _$n_map_$o_empty_$q_(xs: CalcitValue): boolean;
|
|
143
|
+
export declare function _$n_set_$o_empty_$q_(xs: CalcitValue): boolean;
|
|
144
|
+
export declare let _$n_list_$o_first: (xs: CalcitValue) => CalcitValue;
|
|
145
|
+
export declare let _$n_str_$o_first: (xs: CalcitValue) => CalcitValue;
|
|
146
|
+
export declare let _$n_map_$o_destruct: (xs: CalcitValue) => CalcitValue;
|
|
147
|
+
export declare let _$n_set_$o_destruct: (xs: CalcitValue) => CalcitValue;
|
|
148
|
+
export declare let timeout_call: (duration: number, f: CalcitFn) => null;
|
|
149
|
+
export declare let _$n_list_$o_rest: (xs: CalcitValue) => CalcitValue;
|
|
150
|
+
export declare let _$n_str_$o_rest: (xs: CalcitValue) => CalcitValue;
|
|
151
|
+
export declare let recur: (...xs: CalcitValue[]) => CalcitRecur;
|
|
152
|
+
export declare let _$n_get_calcit_backend: () => CalcitTag;
|
|
153
|
+
export declare let not: (x: boolean) => boolean;
|
|
154
|
+
export declare let prepend: (xs: CalcitValue, v: CalcitValue) => CalcitList;
|
|
155
|
+
export declare let append: (xs: CalcitValue, v: CalcitValue) => CalcitList | CalcitSliceList;
|
|
156
|
+
export declare let last: (xs: CalcitValue) => CalcitValue;
|
|
157
|
+
export declare let butlast: (xs: CalcitValue) => CalcitValue;
|
|
158
|
+
export declare let initCrTernary: (x: string) => CalcitValue;
|
|
159
|
+
export declare let _SHA__$M_: (...xs: CalcitValue[]) => CalcitValue;
|
|
160
|
+
export declare let generate_id_$x_: () => string;
|
|
161
|
+
export declare let _$n_display_stack: () => null;
|
|
162
|
+
export declare let _$n_list_$o_slice: (xs: CalcitList, from: number, to: number) => CalcitSliceList | CalcitList;
|
|
163
|
+
export declare let _$n_list_$o_concat: (...lists: (CalcitList | CalcitSliceList)[]) => CalcitList | CalcitSliceList;
|
|
164
|
+
export declare let _$n_list_$o_reverse: (xs: CalcitList) => CalcitList;
|
|
165
|
+
export declare let format_ternary_tree: () => null;
|
|
166
|
+
export declare let _$n__GT_: (a: number, b: number) => boolean;
|
|
167
|
+
export declare let _$n__LT_: (a: number, b: number) => boolean;
|
|
168
|
+
export declare let _$n__: (a: number, b: number) => number;
|
|
169
|
+
export declare let _$n__SLSH_: (a: number, b: number) => number;
|
|
170
|
+
export declare let _$n_number_$o_rem: (a: number, b: number) => number;
|
|
171
|
+
export declare let round_$q_: (a: number) => boolean;
|
|
172
|
+
export declare let _$n_str_$o_concat: (a: string, b: string) => string;
|
|
173
|
+
export declare let sort: (xs: CalcitList | CalcitSliceList, f: CalcitFn) => CalcitSliceList;
|
|
174
|
+
export declare let floor: (n: number) => number;
|
|
175
|
+
export declare let _$n_merge: (a: CalcitValue, b: CalcitMap | CalcitSliceMap) => CalcitValue;
|
|
176
|
+
export declare let _$n_merge_non_nil: (a: CalcitMap | CalcitSliceMap, b: CalcitMap | CalcitSliceMap) => CalcitMap | CalcitSliceMap;
|
|
177
|
+
export declare let to_pairs: (xs: CalcitValue) => CalcitValue | CalcitSliceList;
|
|
178
|
+
export declare let sin: (n: number) => number;
|
|
179
|
+
export declare let cos: (n: number) => number;
|
|
180
|
+
export declare let pow: (n: number, m: number) => number;
|
|
181
|
+
export declare let ceil: (n: number) => number;
|
|
182
|
+
export declare let round: (n: number) => number;
|
|
183
|
+
export declare let _$n_number_$o_fract: (n: number) => number;
|
|
184
|
+
export declare let sqrt: (n: number) => number;
|
|
185
|
+
export declare let _$n_include: (xs: CalcitSet, y: CalcitValue) => CalcitSet;
|
|
186
|
+
export declare let _$n_exclude: (xs: CalcitSet, y: CalcitValue) => CalcitSet;
|
|
187
|
+
export declare let _$n_difference: (xs: CalcitSet, ys: CalcitSet) => CalcitSet;
|
|
188
|
+
export declare let _$n_union: (xs: CalcitSet, ys: CalcitSet) => CalcitSet;
|
|
189
|
+
export declare let _$n_set_$o_intersection: (xs: CalcitSet, ys: CalcitSet) => CalcitSet;
|
|
190
|
+
export declare let _$n_str_$o_replace: (x: string, y: string, z: string) => string;
|
|
191
|
+
export declare let split: (xs: string, x: string) => CalcitSliceList;
|
|
192
|
+
export declare let split_lines: (xs: string) => CalcitSliceList;
|
|
193
|
+
export declare let _$n_str_$o_slice: (xs: string, m: number, n: number) => string;
|
|
194
|
+
export declare let _$n_str_$o_find_index: (x: string, y: string) => number;
|
|
195
|
+
export declare let parse_float: (x: string) => number | null;
|
|
196
|
+
export declare let trim: (x: string, c: string) => string;
|
|
197
|
+
export declare let _$n_number_$o_format: (x: number, n: number) => string;
|
|
198
|
+
export declare let _$n_number_$o_display_by: (x: number, n: number) => string;
|
|
199
|
+
export declare let get_char_code: (c: string) => number;
|
|
200
|
+
export declare let char_from_code: (n: number) => string;
|
|
201
|
+
export declare let _$n_set_$o_to_list: (x: CalcitSet) => CalcitSliceList;
|
|
202
|
+
export declare let aget: (x: any, name: string) => any;
|
|
203
|
+
export declare let aset: (x: any, name: string, v: any) => any;
|
|
204
|
+
export declare let js_get: (x: any, name: string) => any;
|
|
205
|
+
export declare let js_set: (x: any, name: string, v: any) => any;
|
|
206
|
+
/** generates `delete a.b` */
|
|
207
|
+
export declare let js_delete: (obj: any, name: string) => any;
|
|
208
|
+
export declare let get_env: (name: string, v0: string) => string;
|
|
209
|
+
export declare let turn_tag: (x: CalcitValue) => CalcitTag;
|
|
210
|
+
export declare let turn_symbol: (x: CalcitValue) => CalcitSymbol;
|
|
211
|
+
export declare let to_lispy_string: (...args: CalcitValue[]) => string;
|
|
212
|
+
/** helper function for println, js only */
|
|
213
|
+
export declare let printable: (...args: CalcitValue[]) => string;
|
|
214
|
+
export declare let cpu_time: () => number;
|
|
215
|
+
export declare let quit_$x_: () => void;
|
|
216
|
+
export declare let turn_string: (x: CalcitValue) => string;
|
|
217
|
+
export declare let identical_$q_: (x: CalcitValue, y: CalcitValue) => boolean;
|
|
218
|
+
export declare let starts_with_$q_: (xs: CalcitValue, y: CalcitValue) => boolean;
|
|
219
|
+
export declare let ends_with_$q_: (xs: string, y: string) => boolean;
|
|
220
|
+
export declare let blank_$q_: (x: string) => boolean;
|
|
221
|
+
export declare let _$n_str_$o_compare: (x: string, y: string) => 0 | 1 | -1;
|
|
222
|
+
export declare let arrayToList: (xs: Array<CalcitValue>) => CalcitSliceList;
|
|
223
|
+
export declare let listToArray: (xs: CalcitList | CalcitSliceList) => Array<CalcitValue>;
|
|
224
|
+
export declare let number_$q_: (x: CalcitValue) => boolean;
|
|
225
|
+
export declare let string_$q_: (x: CalcitValue) => boolean;
|
|
226
|
+
export declare let bool_$q_: (x: CalcitValue) => boolean;
|
|
227
|
+
export declare let nil_$q_: (x: CalcitValue) => boolean;
|
|
228
|
+
export declare let tag_$q_: (x: CalcitValue) => boolean;
|
|
229
|
+
export declare let symbol_$q_: (x: CalcitValue) => boolean;
|
|
230
|
+
export declare let map_$q_: (x: CalcitValue) => boolean;
|
|
231
|
+
export declare let list_$q_: (x: CalcitValue) => boolean;
|
|
232
|
+
export declare let set_$q_: (x: CalcitValue) => boolean;
|
|
233
|
+
export declare let fn_$q_: (x: CalcitValue) => boolean;
|
|
234
|
+
export declare let ref_$q_: (x: CalcitValue) => boolean;
|
|
235
|
+
export declare let record_$q_: (x: CalcitValue) => boolean;
|
|
236
|
+
export declare let tuple_$q_: (x: CalcitValue) => boolean;
|
|
237
|
+
export declare let buffer_$q_: (x: CalcitValue) => boolean;
|
|
238
|
+
export declare let _$n_str_$o_escape: (x: string) => string;
|
|
239
|
+
export declare let read_file: (path: string) => string;
|
|
240
|
+
export declare let write_file: (path: string, content: string) => void;
|
|
241
|
+
export declare let parse_cirru: (code: string) => CalcitCirruQuote;
|
|
242
|
+
export declare let parse_cirru_list: (code: string) => CalcitList;
|
|
243
|
+
export declare let parse_cirru_edn: (code: string, options: CalcitValue) => CalcitValue;
|
|
244
|
+
export declare let json_parse: (code: CalcitValue) => CalcitValue;
|
|
245
|
+
export declare let json_stringify: (value: CalcitValue) => string;
|
|
246
|
+
export declare let json_pretty: (value: CalcitValue) => string;
|
|
247
|
+
export declare let format_to_lisp: (x: CalcitValue) => string;
|
|
248
|
+
export declare let format_to_cirru: (x: CalcitValue) => string;
|
|
249
|
+
export declare let transform_code_to_cirru: (x: CalcitValue) => ICirruNode;
|
|
250
|
+
/** for quickly creating js Array */
|
|
251
|
+
export declare let js_array: (...xs: CalcitValue[]) => CalcitValue[];
|
|
252
|
+
/** for..await alternative with function */
|
|
253
|
+
export declare let js_for_await: (stream: AsyncIterableIterator<CalcitValue>, f: (v: CalcitValue) => Promise<CalcitValue>) => Promise<CalcitValue>;
|
|
254
|
+
export declare let _$n_js_object: (...xs: CalcitValue[]) => Record<string, CalcitValue>;
|
|
255
|
+
export declare let _$o__$o_: (tagName: CalcitValue, ...extra: CalcitValue[]) => CalcitTuple;
|
|
256
|
+
export declare let _PCT__$o__$o_: (enumPrototype: CalcitValue, tag: CalcitValue, ...extra: CalcitValue[]) => CalcitTuple;
|
|
257
|
+
export declare let _PCT__PCT__$o__$o_: (impl: CalcitValue, enumPrototype: CalcitValue, tag: CalcitValue, ...extra: CalcitValue[]) => CalcitTuple;
|
|
258
|
+
type CalcitImplEntry = CalcitImpl | CalcitList | CalcitSliceList | null;
|
|
259
|
+
declare let calcit_builtin_impls: {
|
|
260
|
+
number: CalcitImplEntry;
|
|
261
|
+
string: CalcitImplEntry;
|
|
262
|
+
set: CalcitImplEntry;
|
|
263
|
+
list: CalcitImplEntry;
|
|
264
|
+
map: CalcitImplEntry;
|
|
265
|
+
fn: CalcitImplEntry;
|
|
266
|
+
tuple: CalcitImplEntry;
|
|
267
|
+
record: CalcitImplEntry;
|
|
268
|
+
};
|
|
269
|
+
export declare let register_calcit_builtin_impls: (options: typeof calcit_builtin_impls) => void;
|
|
270
|
+
/** method used as closure */
|
|
271
|
+
export declare function invoke_method_closure(p: string): (obj: CalcitValue, ...args: CalcitValue[]) => CalcitValue;
|
|
272
|
+
export declare function invoke_method(p: string, obj: CalcitValue, ...args: CalcitValue[]): CalcitValue;
|
|
273
|
+
export declare function _$n_methods_of(obj: CalcitValue): CalcitSliceList;
|
|
274
|
+
export declare function _$n_inspect_methods(obj: CalcitValue, note: CalcitValue): CalcitValue;
|
|
275
|
+
export declare function _$n_trait_call(traitDef: CalcitValue, method: CalcitValue, obj: CalcitValue, ...args: CalcitValue[]): CalcitValue;
|
|
276
|
+
export declare let _$n_map_$o_to_list: (m: CalcitValue) => CalcitSliceList;
|
|
277
|
+
export declare let _$n_map_$o_diff_new: (a: CalcitValue, b: CalcitValue) => CalcitMap;
|
|
278
|
+
export declare let _$n_map_$o_diff_keys: (a: CalcitValue, b: CalcitValue) => CalcitSet;
|
|
279
|
+
export declare let _$n_map_$o_common_keys: (a: CalcitValue, b: CalcitValue) => CalcitSet;
|
|
280
|
+
/** Single-pass diff: returns [drop-keys, new-diff, common-triples] in two traversals instead of 3+ */
|
|
281
|
+
export declare let _$n_map_$o_diff_triple: (a: CalcitValue, b: CalcitValue) => CalcitSliceList;
|
|
282
|
+
export declare let bit_shr: (base: number, step: number) => number;
|
|
283
|
+
export declare let bit_shl: (base: number, step: number) => number;
|
|
284
|
+
export declare let bit_and: (a: number, b: number) => number;
|
|
285
|
+
export declare let bit_or: (a: number, b: number) => number;
|
|
286
|
+
export declare let bit_xor: (a: number, b: number) => number;
|
|
287
|
+
export declare let bit_not: (a: number) => number;
|
|
288
|
+
export declare let _$n_list_$o_to_set: (xs: CalcitList) => CalcitSet;
|
|
289
|
+
export declare let _$n_list_$o_distinct: (xs: CalcitList) => CalcitSliceList;
|
|
290
|
+
export declare let _$n_str_$o_pad_left: (s: string, size: number, pattern: string) => string;
|
|
291
|
+
export declare let _$n_str_$o_pad_right: (s: string, size: number, pattern: string) => string;
|
|
292
|
+
export declare let _$n_get_os: () => CalcitTag;
|
|
293
|
+
export declare let _$n_buffer: (...xs: CalcitValue[]) => Uint8Array;
|
|
294
|
+
export declare let _$n_cirru_nth: (xs: CalcitCirruQuote, idx: number) => CalcitValue;
|
|
295
|
+
export declare let _$n_cirru_type: (xs: CalcitCirruQuote, idx: number) => CalcitTag;
|
|
296
|
+
export declare let _$n_hash: (x: CalcitValue) => number;
|
|
297
|
+
export declare let _$n_cirru_quote_$o_to_list: (x: CalcitCirruQuote) => CalcitValue;
|
|
298
|
+
export declare let reduce: (xs: CalcitValue, acc: CalcitValue, f: CalcitFn) => CalcitValue;
|
|
299
|
+
export declare let _$n_reset_gensym_index_$x_: () => void;
|
|
300
|
+
export declare let gensym: () => void;
|
|
301
|
+
export declare let macroexpand: () => void;
|
|
302
|
+
export declare let macroexpand_all: () => void;
|
|
303
|
+
export declare let _$n_get_calcit_running_mode: () => void;
|
|
304
|
+
export declare let _$n_get_def_doc: () => void;
|
|
305
|
+
export declare let _$n_get_def_schema: () => void;
|
|
306
|
+
export declare let raise: () => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare let _args_throw: (name: string, expected: number, got: number) => Error;
|
|
2
|
+
export declare let _args_fewer_throw: (name: string, min: number, got: number) => Error;
|
|
3
|
+
export declare let _args_between_throw: (name: string, min: number, max: number, got: number) => Error;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
2
|
+
import { CalcitSliceList } from "./js-list.mjs";
|
|
3
|
+
export declare class CalcitBufList {
|
|
4
|
+
buf: CalcitValue[];
|
|
5
|
+
constructor(buf?: CalcitValue[]);
|
|
6
|
+
}
|
|
7
|
+
export declare function _$n_buf_list_$o_new(): CalcitBufList;
|
|
8
|
+
export declare function _$n_buf_list_$o_push(buf: CalcitValue, item: CalcitValue): CalcitBufList;
|
|
9
|
+
export declare function _$n_buf_list_$o_concat(buf: CalcitValue, xs: CalcitValue): CalcitBufList;
|
|
10
|
+
export declare function _$n_buf_list_$o_to_list(buf: CalcitValue): CalcitSliceList;
|
|
11
|
+
export declare function _$n_buf_list_$o_count(buf: CalcitValue): number;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CirruWriterNode } from "@cirru/writer.ts";
|
|
2
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
3
|
+
import { CalcitList } from "./js-list.mjs";
|
|
4
|
+
type CirruEdnFormat = string | CirruEdnFormat[];
|
|
5
|
+
export declare class CalcitCirruQuote {
|
|
6
|
+
value: CirruWriterNode[];
|
|
7
|
+
constructor(value: CirruWriterNode[]);
|
|
8
|
+
toString(): string;
|
|
9
|
+
toList(): CalcitValue;
|
|
10
|
+
nth(idx: number): CalcitValue;
|
|
11
|
+
/** provide a simple text representation in Console or std out, with indentations */
|
|
12
|
+
textForm(): string;
|
|
13
|
+
}
|
|
14
|
+
export declare let format_cirru: (data: CalcitCirruQuote | CalcitList, useInline: boolean) => string;
|
|
15
|
+
export declare let format_cirru_one_liner: (data: CalcitCirruQuote | CalcitList) => string;
|
|
16
|
+
/** better use string version of Cirru EDN in future */
|
|
17
|
+
export declare let to_cirru_edn: (x: CalcitValue) => CirruEdnFormat;
|
|
18
|
+
export declare let extract_cirru_edn: (x: CirruEdnFormat, options: CalcitValue) => CalcitValue;
|
|
19
|
+
export declare let format_cirru_edn: (data: CalcitValue, useInline?: boolean) => string;
|
|
20
|
+
export declare let to_calcit_data: (x: any, noKeyword?: boolean) => CalcitValue;
|
|
21
|
+
/** deep compare cirru array */
|
|
22
|
+
export declare let cirru_deep_equal: (x: CirruWriterNode, y: CirruWriterNode) => boolean;
|
|
23
|
+
export {};
|
package/lib/js-cirru.mjs
CHANGED
|
@@ -433,14 +433,12 @@ export let format_cirru_edn = (data, useInline = true) => {
|
|
|
433
433
|
return "\ndo nil" + "\n";
|
|
434
434
|
}
|
|
435
435
|
if (typeof data === "string") {
|
|
436
|
-
|
|
436
|
+
let quoted = writeCirruCode([[to_cirru_edn(data)]], { useInline: useInline }).trim();
|
|
437
|
+
return "\ndo " + quoted + "\n";
|
|
437
438
|
}
|
|
438
439
|
if (typeof data === "boolean") {
|
|
439
440
|
return "\ndo " + to_cirru_edn(data) + "\n";
|
|
440
441
|
}
|
|
441
|
-
if (typeof data === "string") {
|
|
442
|
-
return "\ndo " + to_cirru_edn(data) + "\n";
|
|
443
|
-
}
|
|
444
442
|
if (data instanceof CalcitSymbol) {
|
|
445
443
|
return "\ndo " + to_cirru_edn(data) + "\n";
|
|
446
444
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CalcitRecord } from "./js-record.mjs";
|
|
2
|
+
import { CalcitImpl } from "./js-impl.mjs";
|
|
3
|
+
export declare class CalcitEnum {
|
|
4
|
+
prototype: CalcitRecord;
|
|
5
|
+
cachedHash: number;
|
|
6
|
+
constructor(prototype: CalcitRecord);
|
|
7
|
+
name(): string;
|
|
8
|
+
get impls(): CalcitImpl[];
|
|
9
|
+
withImpls(impls: CalcitImpl | CalcitImpl[]): CalcitEnum;
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Hash } from "@calcit/ternary-tree";
|
|
2
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
3
|
+
import { CalcitTag } from "./calcit-data.mjs";
|
|
4
|
+
import type { CalcitTrait } from "./js-trait.mjs";
|
|
5
|
+
export declare class CalcitImpl {
|
|
6
|
+
name: CalcitTag;
|
|
7
|
+
origin: CalcitTrait | null;
|
|
8
|
+
fields: Array<CalcitTag>;
|
|
9
|
+
values: Array<CalcitValue>;
|
|
10
|
+
cachedHash: Hash;
|
|
11
|
+
constructor(name: CalcitTag, fields: Array<CalcitTag>, values: Array<CalcitValue>, origin?: CalcitTrait | null);
|
|
12
|
+
get(k: CalcitValue): CalcitValue;
|
|
13
|
+
getOrNil(k: CalcitValue): CalcitValue;
|
|
14
|
+
toString(disableJsDataWarning?: boolean): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
2
|
+
import { TernaryTreeList, Hash } from "@calcit/ternary-tree";
|
|
3
|
+
import { CalcitFn } from "./calcit-data.mjs";
|
|
4
|
+
export declare class CalcitList {
|
|
5
|
+
value: TernaryTreeList<CalcitValue>;
|
|
6
|
+
cachedHash: Hash;
|
|
7
|
+
constructor(value: TernaryTreeList<CalcitValue>);
|
|
8
|
+
len(): number;
|
|
9
|
+
get(idx: number): CalcitValue;
|
|
10
|
+
assoc(idx: number, v: CalcitValue): CalcitList;
|
|
11
|
+
assocBefore(idx: number, v: CalcitValue): CalcitList;
|
|
12
|
+
assocAfter(idx: number, v: CalcitValue): CalcitList;
|
|
13
|
+
dissoc(idx: number): CalcitList;
|
|
14
|
+
slice(from: number, to: number): CalcitList;
|
|
15
|
+
toString(shorter?: boolean, disableJsDataWarning?: boolean): string;
|
|
16
|
+
isEmpty(): boolean;
|
|
17
|
+
/** usage: `for of` */
|
|
18
|
+
items(): Generator<CalcitValue>;
|
|
19
|
+
append(v: CalcitValue): CalcitList;
|
|
20
|
+
prepend(v: CalcitValue): CalcitList;
|
|
21
|
+
first(): CalcitValue;
|
|
22
|
+
rest(): CalcitList;
|
|
23
|
+
concat(ys: CalcitList | CalcitSliceList): CalcitList;
|
|
24
|
+
map(f: (v: CalcitValue) => CalcitValue): CalcitList;
|
|
25
|
+
toArray(): CalcitValue[];
|
|
26
|
+
reverse(): CalcitList;
|
|
27
|
+
nestedDataInChildren(): boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare class CalcitSliceList {
|
|
30
|
+
value: Array<CalcitValue>;
|
|
31
|
+
start: number;
|
|
32
|
+
end: number;
|
|
33
|
+
cachedHash: Hash;
|
|
34
|
+
/** reference to converted list */
|
|
35
|
+
cachedTreeListRef: CalcitList;
|
|
36
|
+
constructor(value: Array<CalcitValue>);
|
|
37
|
+
turnListMode(): CalcitList;
|
|
38
|
+
len(): number;
|
|
39
|
+
get(idx: number): CalcitValue;
|
|
40
|
+
assoc(idx: number, v: CalcitValue): CalcitList;
|
|
41
|
+
assocBefore(idx: number, v: CalcitValue): CalcitList;
|
|
42
|
+
assocAfter(idx: number, v: CalcitValue): CalcitList | CalcitSliceList;
|
|
43
|
+
dissoc(idx: number): CalcitList | CalcitSliceList;
|
|
44
|
+
slice(from: number, to: number): CalcitSliceList;
|
|
45
|
+
toString(shorter?: boolean, disableJsDataWarning?: boolean): string;
|
|
46
|
+
isEmpty(): boolean;
|
|
47
|
+
/** usage: `for of` */
|
|
48
|
+
items(): Generator<CalcitValue>;
|
|
49
|
+
append(v: CalcitValue): CalcitSliceList | CalcitList;
|
|
50
|
+
prepend(v: CalcitValue): CalcitList;
|
|
51
|
+
first(): CalcitValue;
|
|
52
|
+
rest(): CalcitSliceList;
|
|
53
|
+
concat(ys: CalcitSliceList | CalcitList): CalcitList | CalcitSliceList;
|
|
54
|
+
map(f: (v: CalcitValue) => CalcitValue): CalcitSliceList;
|
|
55
|
+
toArray(): CalcitValue[];
|
|
56
|
+
reverse(): CalcitList;
|
|
57
|
+
nestedDataInChildren(): boolean;
|
|
58
|
+
}
|
|
59
|
+
export declare let foldl: (xs: CalcitValue, acc: CalcitValue, f: CalcitFn) => CalcitValue;
|
|
60
|
+
export declare let foldl_shortcut: (xs: CalcitValue, acc: CalcitValue, v0: CalcitValue, f: CalcitFn) => CalcitValue;
|
|
61
|
+
export declare let foldr_shortcut: (xs: CalcitValue, acc: CalcitValue, v0: CalcitValue, f: CalcitFn) => CalcitValue;
|
package/lib/js-map.d.mts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
2
|
+
import { CalcitSet } from "./js-set.mjs";
|
|
3
|
+
import { TernaryTreeMap, Hash } from "@calcit/ternary-tree";
|
|
4
|
+
/** need to compare by Calcit */
|
|
5
|
+
declare let DATA_EQUAL: (x: CalcitValue, y: CalcitValue) => boolean;
|
|
6
|
+
export declare let overwriteMapComparator: (f: typeof DATA_EQUAL) => void;
|
|
7
|
+
export declare class CalcitMap {
|
|
8
|
+
cachedHash: Hash;
|
|
9
|
+
value: TernaryTreeMap<CalcitValue, CalcitValue>;
|
|
10
|
+
constructor(value: TernaryTreeMap<CalcitValue, CalcitValue>);
|
|
11
|
+
len(): number;
|
|
12
|
+
get(k: CalcitValue): CalcitValue;
|
|
13
|
+
assoc(...args: CalcitValue[]): CalcitMap;
|
|
14
|
+
dissoc(...args: CalcitValue[]): CalcitMap;
|
|
15
|
+
toString(shorter?: boolean, disableJsDataWarning?: boolean): string;
|
|
16
|
+
isEmpty(): boolean;
|
|
17
|
+
pairs(): Array<[CalcitValue, CalcitValue]>;
|
|
18
|
+
keysArray(): Array<CalcitValue>;
|
|
19
|
+
contains(k: CalcitValue): boolean;
|
|
20
|
+
merge(ys: CalcitMap | CalcitSliceMap): CalcitMap;
|
|
21
|
+
mergeSkip(ys: CalcitMap | CalcitSliceMap, v: CalcitValue): CalcitMap;
|
|
22
|
+
/** TODO implement diff with low level code, opens opportunity for future optimizations */
|
|
23
|
+
diffNew(ys: CalcitMap | CalcitSliceMap): CalcitMap;
|
|
24
|
+
/** TODO implement diff with low level code, opens opportunity for future optimizations */
|
|
25
|
+
diffKeys(ys: CalcitMap | CalcitSliceMap): CalcitSet;
|
|
26
|
+
/** TODO implement diff with low level code, opens opportunity for future optimizations */
|
|
27
|
+
commonKeys(ys: CalcitMap | CalcitSliceMap): CalcitSet;
|
|
28
|
+
/** detecting in custom formatter */
|
|
29
|
+
nestedDataInChildren(): boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare class CalcitSliceMap {
|
|
32
|
+
cachedHash: Hash;
|
|
33
|
+
/** in arrayMode, only flatten values, instead of tree structure */
|
|
34
|
+
chunk: CalcitValue[];
|
|
35
|
+
/** reference to generated HashMap in tree structure */
|
|
36
|
+
cachedTreeMapRef?: CalcitMap;
|
|
37
|
+
constructor(value: CalcitValue[]);
|
|
38
|
+
/** convert to tree map when needed, also cached in case converted over and over again */
|
|
39
|
+
turnMap(): CalcitMap;
|
|
40
|
+
len(): number;
|
|
41
|
+
get(k: CalcitValue): CalcitValue;
|
|
42
|
+
assoc(...args: CalcitValue[]): CalcitMap | CalcitSliceMap;
|
|
43
|
+
dissoc(...args: CalcitValue[]): CalcitMap | CalcitSliceMap;
|
|
44
|
+
toString(shorter?: boolean, disableJsDataWarning?: boolean): string;
|
|
45
|
+
isEmpty(): boolean;
|
|
46
|
+
pairs(): Array<[CalcitValue, CalcitValue]>;
|
|
47
|
+
keysArray(): Array<CalcitValue>;
|
|
48
|
+
contains(k: CalcitValue): boolean;
|
|
49
|
+
merge(ys: CalcitMap | CalcitSliceMap): CalcitMap | CalcitSliceMap;
|
|
50
|
+
mergeSkip(ys: CalcitMap | CalcitSliceMap, v: CalcitValue): CalcitMap | CalcitSliceMap;
|
|
51
|
+
/** TODO implement diff with low level code, opens opportunity for future optimizations */
|
|
52
|
+
diffNew(ys: CalcitSliceMap | CalcitMap): CalcitMap;
|
|
53
|
+
/** TODO implement diff with low level code, opens opportunity for future optimizations */
|
|
54
|
+
diffKeys(ys: CalcitMap | CalcitSliceMap): CalcitSet;
|
|
55
|
+
/** TODO implement diff with low level code, opens opportunity for future optimizations */
|
|
56
|
+
commonKeys(ys: CalcitMap | CalcitSliceMap): CalcitSet;
|
|
57
|
+
/** detecting in custom formatter */
|
|
58
|
+
nestedDataInChildren(): boolean;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CalcitTag, CalcitSymbol, CalcitFn, CalcitRecur } from "./calcit-data.mjs";
|
|
2
|
+
import { CalcitRef } from "./js-ref.mjs";
|
|
3
|
+
import { CalcitList, CalcitSliceList } from "./js-list.mjs";
|
|
4
|
+
import { CalcitRecord } from "./js-record.mjs";
|
|
5
|
+
import { CalcitImpl } from "./js-impl.mjs";
|
|
6
|
+
import { CalcitStruct } from "./js-struct.mjs";
|
|
7
|
+
import { CalcitEnum } from "./js-enum.mjs";
|
|
8
|
+
import { CalcitMap, CalcitSliceMap } from "./js-map.mjs";
|
|
9
|
+
import { CalcitSet as CalcitSet } from "./js-set.mjs";
|
|
10
|
+
import { CalcitTuple } from "./js-tuple.mjs";
|
|
11
|
+
import { CalcitCirruQuote } from "./js-cirru.mjs";
|
|
12
|
+
import { CalcitTrait } from "./js-trait.mjs";
|
|
13
|
+
export type CalcitValue = string | number | boolean | CalcitMap | CalcitSliceMap | CalcitList | CalcitSliceList | CalcitSet | CalcitTag | CalcitSymbol | CalcitRef | CalcitTuple | CalcitFn | CalcitRecur | CalcitRecord | CalcitImpl | CalcitTrait | CalcitStruct | CalcitEnum | CalcitCirruQuote | null;
|
|
14
|
+
export declare let isLiteral: (x: CalcitValue) => boolean;
|
|
15
|
+
export declare let _$n_compare: (a: CalcitValue, b: CalcitValue) => number;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Hash } from "@calcit/ternary-tree";
|
|
2
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
3
|
+
import { CalcitImpl } from "./js-impl.mjs";
|
|
4
|
+
import { CalcitTag } from "./calcit-data.mjs";
|
|
5
|
+
import { CalcitStruct } from "./js-struct.mjs";
|
|
6
|
+
export declare class CalcitRecord {
|
|
7
|
+
name: CalcitTag;
|
|
8
|
+
fields: Array<CalcitTag>;
|
|
9
|
+
values: Array<CalcitValue>;
|
|
10
|
+
structRef: CalcitStruct;
|
|
11
|
+
cachedHash: Hash;
|
|
12
|
+
constructor(name: CalcitTag, fields: Array<CalcitTag>, values?: Array<CalcitValue>, structRef?: CalcitStruct);
|
|
13
|
+
get(k: CalcitValue): CalcitValue;
|
|
14
|
+
getOrNil(k: CalcitValue): CalcitValue;
|
|
15
|
+
assoc(k: CalcitValue, v: CalcitValue): CalcitRecord;
|
|
16
|
+
/** return -1 for missing */
|
|
17
|
+
findIndex(k: CalcitValue): number;
|
|
18
|
+
contains(k: CalcitValue): boolean;
|
|
19
|
+
toString(disableJsDataWarning?: boolean): string;
|
|
20
|
+
withImpls(impl: CalcitValue | CalcitImpl[]): CalcitRecord;
|
|
21
|
+
}
|
|
22
|
+
export declare let new_record: (name: CalcitValue, ...fields: Array<CalcitValue>) => CalcitValue;
|
|
23
|
+
export declare let new_impl_record: (impl: CalcitImpl, name: CalcitValue, ...fields: Array<CalcitValue>) => CalcitValue;
|
|
24
|
+
/** Loose record: `?{} :field1 val1 :field2 val2` – record without a declared struct.
|
|
25
|
+
* Fields are sorted by tag index. The record name is "?" (sentinel). */
|
|
26
|
+
export declare let _$q__$M_: (...xs: Array<CalcitValue>) => CalcitValue;
|
|
27
|
+
export declare let fieldsEqual: (xs: Array<CalcitTag>, ys: Array<CalcitTag>) => boolean;
|
|
28
|
+
export declare let _$n__PCT__$M_: (proto: CalcitValue, ...xs: Array<CalcitValue>) => CalcitValue;
|
|
29
|
+
export declare let _$n__PCT__$M__$q_: (proto: CalcitValue, ...xs: Array<CalcitValue>) => CalcitValue;
|
|
30
|
+
export declare let _$n_record_$o_with: (proto: CalcitValue, ...xs: Array<CalcitValue>) => CalcitValue;
|
|
31
|
+
export declare let _$n_record_$o_get_name: (x: CalcitValue) => CalcitTag;
|
|
32
|
+
export declare let _$n_record_$o_struct: (x: CalcitValue) => CalcitValue;
|
|
33
|
+
export declare let _$n_record_$o_from_map: (proto: CalcitValue, data: CalcitValue) => CalcitValue;
|
|
34
|
+
export declare let _$n_record_$o_to_map: (x: CalcitValue) => CalcitValue;
|
|
35
|
+
export declare let _$n_record_$o_matches_$q_: (x: CalcitValue, y: CalcitValue) => boolean;
|
|
36
|
+
export declare function _$n_record_$o_extend_as(obj: CalcitValue, new_name: CalcitValue, new_key: CalcitValue, new_value: CalcitValue): CalcitRecord;
|
package/lib/js-ref.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Hash } from "@calcit/ternary-tree";
|
|
2
|
+
import type { CalcitFn } from "./calcit-data.mjs";
|
|
3
|
+
import type { CalcitValue } from "./js-primes.mts";
|
|
4
|
+
export declare class CalcitRef {
|
|
5
|
+
value: CalcitValue;
|
|
6
|
+
path: string;
|
|
7
|
+
listeners: Map<CalcitValue, CalcitFn>;
|
|
8
|
+
cachedHash: Hash;
|
|
9
|
+
constructor(x: CalcitValue, path: string);
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
|
12
|
+
export declare let atom: (x: CalcitValue) => CalcitValue;
|
package/lib/js-set.d.mts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
2
|
+
import { TernaryTreeMap, Hash } from "@calcit/ternary-tree";
|
|
3
|
+
import { CalcitSliceList } from "./js-list.mjs";
|
|
4
|
+
/** need to compare by Calcit */
|
|
5
|
+
declare let DATA_EQUAL: (x: CalcitValue, y: CalcitValue) => boolean;
|
|
6
|
+
export declare let overwriteSetComparator: (f: typeof DATA_EQUAL) => void;
|
|
7
|
+
export declare class CalcitSet {
|
|
8
|
+
value: TernaryTreeMap<CalcitValue, boolean>;
|
|
9
|
+
cachedHash: Hash;
|
|
10
|
+
constructor(value: TernaryTreeMap<CalcitValue, boolean> | Array<CalcitValue>);
|
|
11
|
+
len(): number;
|
|
12
|
+
contains(y: CalcitValue): boolean;
|
|
13
|
+
include(y: CalcitValue): CalcitSet;
|
|
14
|
+
exclude(y: CalcitValue): CalcitSet;
|
|
15
|
+
difference(ys: CalcitSet): CalcitSet;
|
|
16
|
+
union(ys: CalcitSet): CalcitSet;
|
|
17
|
+
intersection(ys: CalcitSet): CalcitSet;
|
|
18
|
+
destruct(): CalcitSliceList;
|
|
19
|
+
toString(disableJsDataWarning?: boolean): string;
|
|
20
|
+
values(): CalcitValue[];
|
|
21
|
+
nestedDataInChildren(): boolean;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CalcitTag } from "./calcit-data.mjs";
|
|
2
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
3
|
+
import { CalcitImpl } from "./js-impl.mjs";
|
|
4
|
+
export declare class CalcitStruct {
|
|
5
|
+
name: CalcitTag;
|
|
6
|
+
fields: CalcitTag[];
|
|
7
|
+
fieldTypes: CalcitValue[];
|
|
8
|
+
impls: CalcitImpl[];
|
|
9
|
+
cachedHash: number;
|
|
10
|
+
constructor(name: CalcitTag, fields: CalcitTag[], fieldTypes: CalcitValue[], impls?: CalcitImpl[]);
|
|
11
|
+
withImpls(impls: CalcitImpl | CalcitImpl[]): CalcitStruct;
|
|
12
|
+
toString(disableJsDataWarning?: boolean): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CalcitTag } from "./calcit-data.mjs";
|
|
2
|
+
import { CalcitValue } from "./js-primes.mjs";
|
|
3
|
+
export declare class CalcitTrait {
|
|
4
|
+
name: CalcitTag;
|
|
5
|
+
methods: CalcitTag[];
|
|
6
|
+
methodTypes: CalcitValue[];
|
|
7
|
+
constructor(name: CalcitValue, methods: CalcitValue[], methodTypes: CalcitValue[]);
|
|
8
|
+
toString(disableJsDataWarning?: boolean): string;
|
|
9
|
+
}
|