diff --git a/404.html b/404.html index ea6caa1a19..4159c3ae3b 100644 --- a/404.html +++ b/404.html @@ -6,14 +6,14 @@ Page Not Found | ArkType - - - + + +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- - + + \ No newline at end of file diff --git a/assets/css/styles.ad68992d.css b/assets/css/styles.a79385c0.css similarity index 92% rename from assets/css/styles.ad68992d.css rename to assets/css/styles.a79385c0.css index 257dcd668f..d203f1043f 100644 --- a/assets/css/styles.ad68992d.css +++ b/assets/css/styles.a79385c0.css @@ -1 +1 @@ -@import url(https://fonts.googleapis.com/css?family=Raleway:300,400,500,700&display=swap);.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.toggleButton_VXT7,html{-webkit-tap-highlight-color:transparent}.clean-list,.containsTaskList_DwMY,.details_fuz7>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:transparent;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:rgba(0,0,0,.05);--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 rgba(0,0,0,.1);--ifm-global-shadow-md:0 5px 40px rgba(0,0,0,.2);--ifm-global-shadow-tl:0 12px 28px 0 rgba(0,0,0,.2),0 2px 4px 0 rgba(0,0,0,.1);--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:transparent;--ifm-table-stripe-background:rgba(0,0,0,.03);--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-font-family-base:Raleway,sans-serif;--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:transparent;--docusaurus-collapse-button-bg-hover:rgba(0,0,0,.1);--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:transparent}*{box-sizing:border-box}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_KvMm{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_c0LA,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-vert--md{margin-top:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid rgba(0,0,0,.1);border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:transparent;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList_d1Tg{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_xdhj .wordWrapButtonIcon_TyEO{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_wRvQ,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:rgba(53,120,229,.15);--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:rgba(235,237,240,.15);--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:rgba(0,164,0,.15);--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:rgba(84,199,236,.15);--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:rgba(255,186,0,.15);--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:rgba(250,56,62,.15);--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{-moz-column-gap:var(--ifm-avatar-intro-margin);column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs__link:-moz-any-link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs__link:any-link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:transparent;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_OEcf:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}#nprogress,.dropdown__menu,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor transparent;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_UOBx article>:first-child,.docItemContainer_UOBx header+*,.footer__item{margin-top:0}.admonitionContent_Z6WN>:last-child,.collapsibleContent_L5_A>:last-child,.footer__items,.tabItem_ydMX>:last-child{margin-bottom:0}.codeBlockStandalone_LVv_,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_fuz7[data-collapsed=false].isBrowser_gUii>summary:before,.details_fuz7[open]:not(.isBrowser_gUii)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;bottom:0;visibility:hidden}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter);content:""}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;margin-right:1rem;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_hbqg,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:hsla(0,0%,100%,.1);--ifm-navbar-search-input-placeholder-color:hsla(0,0%,100%,.5);color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:hsla(0,0%,100%,.05);--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::-moz-placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:rgba(0,0,0,.6);position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{-moz-column-gap:var(--ifm-pagination-page-spacing);column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar-github:before,[class*=ToggleIcon]{height:36px;width:36px}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_DwMY>li)>.containsTaskList_DwMY{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid transparent;border-radius:var(--ifm-global-radius);display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:hsla(0,0%,100%,.05);--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:hsla(0,0%,100%,.1);--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:hsla(0,0%,100%,.07);--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}.navbar{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.navbar__items,.navbar__link{font-size:x-large}.navbar__link{color:#fff;text-decoration:none;transition:color .3s}.navbar-versions{font-size:21px!important}.navbar__logo:hover{scale:1.1;transition:.2s ease-out}.dropdown{padding:2px}.navbar-github:hover{opacity:.6;transition:.2s}.navbar-github:before{background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzFiMWIxYiIgZD0iTTEyIDJBMTAgMTAgMCAwIDAgMiAxMmMwIDQuNDIgMi44NyA4LjE3IDYuODQgOS41LjUuMDguNjYtLjIzLjY2LS41di0xLjY5Yy0yLjc3LjYtMy4zNi0xLjM0LTMuMzYtMS4zNC0uNDYtMS4xNi0xLjExLTEuNDctMS4xMS0xLjQ3LS45MS0uNjIuMDctLjYuMDctLjYgMSAuMDcgMS41MyAxLjAzIDEuNTMgMS4wMy44NyAxLjUyIDIuMzQgMS4wNyAyLjkxLjgzLjA5LS42NS4zNS0xLjA5LjYzLTEuMzQtMi4yMi0uMjUtNC41NS0xLjExLTQuNTUtNC45MiAwLTEuMTEuMzgtMiAxLjAzLTIuNzEtLjEtLjI1LS40NS0xLjI5LjEtMi42NCAwIDAgLjg0LS4yNyAyLjc1IDEuMDIuNzktLjIyIDEuNjUtLjMzIDIuNS0uMzMuODUgMCAxLjcxLjExIDIuNS4zMyAxLjkxLTEuMjkgMi43NS0xLjAyIDIuNzUtMS4wMi41NSAxLjM1LjIgMi4zOS4xIDIuNjQuNjUuNzEgMS4wMyAxLjYgMS4wMyAyLjcxIDAgMy44Mi0yLjM0IDQuNjYtNC41NyA0LjkxLjM2LjMxLjY5LjkyLjY5IDEuODVWMjFjMCAuMjcuMTYuNTkuNjcuNUMxOS4xNCAyMC4xNiAyMiAxNi40MiAyMiAxMkExMCAxMCAwIDAgMCAxMiAyWiIvPjwvc3ZnPg==);content:"";display:flex}[data-theme=dark] .navbar-github:before{background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iaXZvcnkiIGQ9Ik0xMiAyQTEwIDEwIDAgMCAwIDIgMTJjMCA0LjQyIDIuODcgOC4xNyA2Ljg0IDkuNS41LjA4LjY2LS4yMy42Ni0uNXYtMS42OWMtMi43Ny42LTMuMzYtMS4zNC0zLjM2LTEuMzQtLjQ2LTEuMTYtMS4xMS0xLjQ3LTEuMTEtMS40Ny0uOTEtLjYyLjA3LS42LjA3LS42IDEgLjA3IDEuNTMgMS4wMyAxLjUzIDEuMDMuODcgMS41MiAyLjM0IDEuMDcgMi45MS44My4wOS0uNjUuMzUtMS4wOS42My0xLjM0LTIuMjItLjI1LTQuNTUtMS4xMS00LjU1LTQuOTIgMC0xLjExLjM4LTIgMS4wMy0yLjcxLS4xLS4yNS0uNDUtMS4yOS4xLTIuNjQgMCAwIC44NC0uMjcgMi43NSAxLjAyLjc5LS4yMiAxLjY1LS4zMyAyLjUtLjMzLjg1IDAgMS43MS4xMSAyLjUuMzMgMS45MS0xLjI5IDIuNzUtMS4wMiAyLjc1LTEuMDIuNTUgMS4zNS4yIDIuMzkuMSAyLjY0LjY1LjcxIDEuMDMgMS42IDEuMDMgMi43MSAwIDMuODItMi4zNCA0LjY2LTQuNTcgNC45MS4zNi4zMS42OS45Mi42OSAxLjg1VjIxYzAgLjI3LjE2LjU5LjY3LjVDMTkuMTQgMjAuMTYgMjIgMTYuNDIgMjIgMTJBMTAgMTAgMCAwIDAgMTIgMloiLz48L3N2Zz4=)}.footer{background-color:#085b92}header{background:#0c5c91;overflow:hidden;position:relative;text-align:center}[data-theme=dark],[data-theme=dark] .navbar{background-color:#1b1b1b}[data-theme=dark]{--ifm-color-primary:#009eff;--ifm-color-primary-dark:#008ee6;--ifm-color-primary-darker:#0086d9;--ifm-color-primary-darkest:#006fb3;--ifm-color-primary-light:#1aa8ff;--ifm-color-primary-lighter:#26adff;--ifm-color-primary-lightest:#4dbbff;--ifm-tabs-color-active:ivory;--ifm-tabs-color-active-border:ivory}[data-theme=light]{--ifm-color-primary:#085b92;--ifm-color-primary-dark:#075283;--ifm-color-primary-darker:#074d7c;--ifm-color-primary-darkest:#064066;--ifm-color-primary-light:#0964a1;--ifm-color-primary-lighter:#0969a8;--ifm-color-primary-lightest:#0a76be;--ifm-tabs-color-active:#1b1b1b;--ifm-tabs-color-active-border:#1b1b1b;background-color:ivory}.installationTabs{border-radius:10px;height:2.1rem;overflow:hidden}.installationTabs,.subTabs{--ifm-tabs-color:#8a8a8a;margin-top:-1.3rem}.subTabs{height:2.5rem}.margin-top--md{margin-top:.8rem!important}.tabs__item{border-top-left-radius:10px;border-top-right-radius:10px;cursor:pointer;font-size:1rem;margin:0 .5rem;padding:.5rem 1rem;transition:.2s}.npmTab{--ifm-tabs-color-active:#ff3939;--ifm-tabs-color-active-border:#ff3939}.pnpmTab{--ifm-tabs-color-active:#f69220;--ifm-tabs-color-active-border:#f69220}.yarnTab{--ifm-tabs-color-active:#6fd3ff;--ifm-tabs-color-active-border:#6fd3ff}.theme-code-block{--prism-background-color:#1b1b1baa;--ifm-pre-padding:1rem}.inferable-code{background:ivory;border-radius:.5rem;position:relative}.inferable-code .theme-code-block{--prism-background-color:linear-gradient(to top right,#0d1117,#0d1117dd)!important}#docusaurus-base-url-issue-banner-container,.inferable-code img,.themedImage_SLpL,[data-theme=dark] .lightToggleIcon_NHje,[data-theme=light] .darkToggleIcon__wIr,html[data-announcement-bar-initially-dismissed=true] .announcementBar_xBKY{display:none}.inferable-code:hover img{bottom:0;display:block;position:absolute;right:1rem}body:not(.navigation-with-keyboard) :not(input):focus{outline:0}.skipToContent_Wp8_{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem;z-index:calc(var(--ifm-z-index-fixed) + 1)}.skipToContent_Wp8_:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_shyj{line-height:0;padding:0}.content_mecL{font-size:85%;padding:5px 0;text-align:center}.content_mecL a{color:inherit;text-decoration:underline}.announcementBar_xBKY{align-items:center;background-color:var(--ifm-color-white);border-bottom:1px solid var(--ifm-color-emphasis-100);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}.announcementBarPlaceholder_LNw6{flex:0 0 10px}.announcementBarClose_iPqh{align-self:stretch;flex:0 0 30px}.toggle_ovhU{height:2rem;width:2rem}.toggleButton_VXT7{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButton_VXT7:hover{background:var(--ifm-color-emphasis-200)}.toggleButtonDisabled_BkVM{cursor:not-allowed}.darkNavbarColorModeToggle_LHBs:hover{background:var(--ifm-color-gray-800)}[data-theme=dark] .themedImage--dark_g84L,[data-theme=light] .themedImage--light_uXSA{display:initial}.iconExternalLink_Pq0g{margin-left:.3rem}.iconLanguage_UCp_{margin-right:5px;vertical-align:text-bottom}.navbarHideable_evHJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_JVAT{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_Hzkc{color:red;white-space:pre-wrap}.footerLogoLink_rFf8{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_rFf8:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.mainWrapper_flzm{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.iconEdit_wOc2{margin-right:.3em;vertical-align:sub}.tag_Rlpt{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_Rlpt:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_AwM7{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_fDc3{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_fDc3:after,.tagWithCount_fDc3:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_fDc3:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_fDc3:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_fDc3 span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_dbEo{display:inline}.tag_CdAb{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_Kmtu{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_Mwcu{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_Mwcu:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_v2Im:after,.tocCollapsibleExpanded_tdNM{transform:none}.tocCollapsible_slZy{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.buttonGroup_wK9r button,.codeBlockContainer_irTt{background:var(--prism-background-color);color:var(--prism-color)}.tocCollapsibleContent_z8nw>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_z8nw ul li{margin:.4rem .8rem}.tocCollapsibleContent_z8nw a{display:block}.tableOfContents_W2sd{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.anchorWithStickyNavbar_y6XU{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_yKms{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;-moz-user-select:none;user-select:none}.hash-link:before{content:"#"}.codeBlockContainer_irTt{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_A2pm{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_TTvJ{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_CzQn{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_TTvJ+.codeBlockContent_A2pm .codeBlock_CzQn{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_zL7B{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_vdtm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup_wK9r{-moz-column-gap:.2rem;column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup_wK9r button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup_wK9r button:focus-visible,.buttonGroup_wK9r button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup_wK9r button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_esxu{counter-increment:a;display:table-row}.codeLineNumber_OEcf{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_OEcf:before{content:counter(a);opacity:.4}.codeLineContent_rPCR{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_JhZC{opacity:1!important}.copyButtonIcons_H3Zv{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_fvwI,.copyButtonSuccessIcon_lFj9{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_lFj9{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_JhZC .copyButtonIcon_fvwI{opacity:0;transform:scale(.33)}.copyButtonCopied_JhZC .copyButtonSuccessIcon_lFj9{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_TyEO{height:1.2rem;width:1.2rem}.details_fuz7{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_fuz7>summary{cursor:pointer;padding-left:1rem;position:relative}.details_fuz7>summary::-webkit-details-marker{display:none}.details_fuz7>summary:before{border-color:transparent transparent transparent var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_L5_A{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_uAm8{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.img_CpET{height:auto}.admonition__AX7{margin-bottom:1em}.admonitionHeading_wRvQ{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.3rem}.admonitionHeading_wRvQ code{text-transform:none}.admonitionIcon_XDxU{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_XDxU svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_PRsb{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_GNNc{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.backToTopButton_q4Aj{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_q4Aj:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_zi2D{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:hsla(0,0%,100%,.05);--docusaurus-collapse-button-bg-hover:hsla(0,0%,100%,.1)}.collapseSidebarButton_mFa3{display:none;margin:0}.docSidebarContainer_wP7F,.sidebarLogo_yHun{display:none}.docMainContainer_Wszh,.docPage_Vt1s{display:flex;width:100%}.docPage_Vt1s{flex:1 0}.docsWrapper_gQIK{display:flex;flex:1 0 auto}@media (min-width:997px){.collapseSidebarButton_mFa3,.expandButton_juOp{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_iPqh,.announcementBarPlaceholder_LNw6{flex-basis:50px}.searchBox_TRjY{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_Kmtu{text-align:right}.tocMobile_bovb{display:none}.docItemCol_VUf3{max-width:75%!important}.collapseSidebarButton_mFa3{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_R3xe{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_pWNO,[dir=rtl] .collapseSidebarButtonIcon_R3xe{transform:rotate(0)}.collapseSidebarButton_mFa3:focus,.collapseSidebarButton_mFa3:hover,.expandButton_juOp:focus,.expandButton_juOp:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_hp7F{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_vk4N{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_vk4N{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_ksAN{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_Dcc5{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_jG7M{padding-top:0}.sidebarHidden_xNWg{opacity:0;visibility:hidden}.sidebarLogo_yHun{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_yHun img{height:2rem;margin-right:.5rem}.expandButton_juOp{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_pWNO{transform:rotate(180deg)}.docSidebarContainer_wP7F{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_geWl{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_ZzZx{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_Wszh{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_bNcs{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_UUf4{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_b7VH,.footer__link-separator,.navbar__item,.tableOfContents_W2sd{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.searchBox_TRjY{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_Z3DR{padding:0 .3rem}}@media only screen and (max-width:768px){.contents{margin-left:2rem!important;margin-right:2rem!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}}@media (hover:hover){.backToTopButton_q4Aj:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_xBKY,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_bovb{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_zL7B{white-space:pre-wrap}} \ No newline at end of file +@import url(https://fonts.googleapis.com/css?family=Raleway:300,400,500,700&display=swap);.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.toggleButton_VXT7,html{-webkit-tap-highlight-color:transparent}.clean-list,.containsTaskList_DwMY,.details_fuz7>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:transparent;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:rgba(0,0,0,.05);--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 rgba(0,0,0,.1);--ifm-global-shadow-md:0 5px 40px rgba(0,0,0,.2);--ifm-global-shadow-tl:0 12px 28px 0 rgba(0,0,0,.2),0 2px 4px 0 rgba(0,0,0,.1);--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:transparent;--ifm-table-stripe-background:rgba(0,0,0,.03);--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-font-family-base:Raleway,sans-serif;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-announcement-bar-height:auto;--docusaurus-collapse-button-bg:transparent;--docusaurus-collapse-button-bg-hover:rgba(0,0,0,.1);--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:transparent}*{box-sizing:border-box}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_KvMm{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_c0LA,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-vert--md{margin-top:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid rgba(0,0,0,.1);border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:transparent;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList_d1Tg{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_xdhj .wordWrapButtonIcon_TyEO{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_wRvQ,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:rgba(53,120,229,.15);--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:rgba(235,237,240,.15);--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:rgba(0,164,0,.15);--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:rgba(84,199,236,.15);--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:rgba(255,186,0,.15);--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:rgba(250,56,62,.15);--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{-moz-column-gap:var(--ifm-avatar-intro-margin);column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs__link:-moz-any-link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs__link:any-link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:transparent;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_OEcf:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}#nprogress,.dropdown__menu,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor transparent;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_UOBx article>:first-child,.docItemContainer_UOBx header+*,.footer__item{margin-top:0}.admonitionContent_Z6WN>:last-child,.collapsibleContent_L5_A>:last-child,.footer__items,.tabItem_ydMX>:last-child{margin-bottom:0}.codeBlockStandalone_LVv_,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_fuz7[data-collapsed=false].isBrowser_gUii>summary:before,.details_fuz7[open]:not(.isBrowser_gUii)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;top:0;bottom:0;left:0;visibility:hidden}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter);content:""}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;margin-right:1rem;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_hbqg,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:hsla(0,0%,100%,.1);--ifm-navbar-search-input-placeholder-color:hsla(0,0%,100%,.5);color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:hsla(0,0%,100%,.05);--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::-moz-placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:rgba(0,0,0,.6);position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{-moz-column-gap:var(--ifm-pagination-page-spacing);column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar-github:before,[class*=ToggleIcon]{height:36px;width:36px}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_DwMY>li)>.containsTaskList_DwMY{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid transparent;border-radius:var(--ifm-global-radius);display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:hsla(0,0%,100%,.05);--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:hsla(0,0%,100%,.1);--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:hsla(0,0%,100%,.07);--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}.navbar{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.navbar__items,.navbar__link{font-size:x-large}.navbar__link{color:#fff;text-decoration:none;transition:color .3s}.navbar-versions{font-size:21px!important}.navbar__logo:hover{scale:1.1;transition:.2s ease-out}.dropdown{padding:2px}.navbar-github:hover{opacity:.6;transition:.2s}.navbar-github:before{background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzFiMWIxYiIgZD0iTTEyIDJBMTAgMTAgMCAwIDAgMiAxMmMwIDQuNDIgMi44NyA4LjE3IDYuODQgOS41LjUuMDguNjYtLjIzLjY2LS41di0xLjY5Yy0yLjc3LjYtMy4zNi0xLjM0LTMuMzYtMS4zNC0uNDYtMS4xNi0xLjExLTEuNDctMS4xMS0xLjQ3LS45MS0uNjIuMDctLjYuMDctLjYgMSAuMDcgMS41MyAxLjAzIDEuNTMgMS4wMy44NyAxLjUyIDIuMzQgMS4wNyAyLjkxLjgzLjA5LS42NS4zNS0xLjA5LjYzLTEuMzQtMi4yMi0uMjUtNC41NS0xLjExLTQuNTUtNC45MiAwLTEuMTEuMzgtMiAxLjAzLTIuNzEtLjEtLjI1LS40NS0xLjI5LjEtMi42NCAwIDAgLjg0LS4yNyAyLjc1IDEuMDIuNzktLjIyIDEuNjUtLjMzIDIuNS0uMzMuODUgMCAxLjcxLjExIDIuNS4zMyAxLjkxLTEuMjkgMi43NS0xLjAyIDIuNzUtMS4wMi41NSAxLjM1LjIgMi4zOS4xIDIuNjQuNjUuNzEgMS4wMyAxLjYgMS4wMyAyLjcxIDAgMy44Mi0yLjM0IDQuNjYtNC41NyA0LjkxLjM2LjMxLjY5LjkyLjY5IDEuODVWMjFjMCAuMjcuMTYuNTkuNjcuNUMxOS4xNCAyMC4xNiAyMiAxNi40MiAyMiAxMkExMCAxMCAwIDAgMCAxMiAyWiIvPjwvc3ZnPg==);content:"";display:flex}[data-theme=dark] .navbar-github:before{background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iaXZvcnkiIGQ9Ik0xMiAyQTEwIDEwIDAgMCAwIDIgMTJjMCA0LjQyIDIuODcgOC4xNyA2Ljg0IDkuNS41LjA4LjY2LS4yMy42Ni0uNXYtMS42OWMtMi43Ny42LTMuMzYtMS4zNC0zLjM2LTEuMzQtLjQ2LTEuMTYtMS4xMS0xLjQ3LTEuMTEtMS40Ny0uOTEtLjYyLjA3LS42LjA3LS42IDEgLjA3IDEuNTMgMS4wMyAxLjUzIDEuMDMuODcgMS41MiAyLjM0IDEuMDcgMi45MS44My4wOS0uNjUuMzUtMS4wOS42My0xLjM0LTIuMjItLjI1LTQuNTUtMS4xMS00LjU1LTQuOTIgMC0xLjExLjM4LTIgMS4wMy0yLjcxLS4xLS4yNS0uNDUtMS4yOS4xLTIuNjQgMCAwIC44NC0uMjcgMi43NSAxLjAyLjc5LS4yMiAxLjY1LS4zMyAyLjUtLjMzLjg1IDAgMS43MS4xMSAyLjUuMzMgMS45MS0xLjI5IDIuNzUtMS4wMiAyLjc1LTEuMDIuNTUgMS4zNS4yIDIuMzkuMSAyLjY0LjY1LjcxIDEuMDMgMS42IDEuMDMgMi43MSAwIDMuODItMi4zNCA0LjY2LTQuNTcgNC45MS4zNi4zMS42OS45Mi42OSAxLjg1VjIxYzAgLjI3LjE2LjU5LjY3LjVDMTkuMTQgMjAuMTYgMjIgMTYuNDIgMjIgMTJBMTAgMTAgMCAwIDAgMTIgMloiLz48L3N2Zz4=)}.footer{background-color:#085b92}header{background:#0c5c91;overflow:hidden;position:relative;text-align:center}[data-theme=dark],[data-theme=dark] .navbar{background-color:#1b1b1b}[data-theme=dark]{--ifm-color-primary:#009eff;--ifm-color-primary-dark:#008ee6;--ifm-color-primary-darker:#0086d9;--ifm-color-primary-darkest:#006fb3;--ifm-color-primary-light:#1aa8ff;--ifm-color-primary-lighter:#26adff;--ifm-color-primary-lightest:#4dbbff;--ifm-tabs-color-active:ivory;--ifm-tabs-color-active-border:ivory}[data-theme=light]{--ifm-color-primary:#085b92;--ifm-color-primary-dark:#075283;--ifm-color-primary-darker:#074d7c;--ifm-color-primary-darkest:#064066;--ifm-color-primary-light:#0964a1;--ifm-color-primary-lighter:#0969a8;--ifm-color-primary-lightest:#0a76be;--ifm-tabs-color-active:#1b1b1b;--ifm-tabs-color-active-border:#1b1b1b;background-color:ivory}.installationTabs{border-radius:10px;height:2.1rem;overflow:hidden}.installationTabs,.subTabs{--ifm-tabs-color:#8a8a8a;margin-top:-1.3rem}.subTabs{height:2.5rem}.margin-top--md{margin-top:.8rem!important}.tabs__item{border-top-left-radius:10px;border-top-right-radius:10px;cursor:pointer;font-size:1rem;margin:0 .5rem;padding:.5rem 1rem;transition:.2s}.npmTab{--ifm-tabs-color-active:#ff3939;--ifm-tabs-color-active-border:#ff3939}.pnpmTab{--ifm-tabs-color-active:#f69220;--ifm-tabs-color-active-border:#f69220}.yarnTab{--ifm-tabs-color-active:#6fd3ff;--ifm-tabs-color-active-border:#6fd3ff}.theme-code-block{--prism-background-color:#1b1b1baa;--ifm-pre-padding:1rem}.inferable-code{background:ivory;border-radius:.5rem;position:relative}.inferable-code .theme-code-block{--prism-background-color:linear-gradient(to top right,#0d1117,#0d1117dd)!important}#docusaurus-base-url-issue-banner-container,.inferable-code img,.themedImage_SLpL,[data-theme=dark] .lightToggleIcon_NHje,[data-theme=light] .darkToggleIcon__wIr,html[data-announcement-bar-initially-dismissed=true] .announcementBar_xBKY{display:none}.inferable-code:hover img{bottom:0;display:block;position:absolute;right:1rem}.iconEdit_wOc2{margin-right:.3em;vertical-align:sub}.tag_Rlpt{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_Rlpt:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_AwM7{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_fDc3{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_fDc3:after,.tagWithCount_fDc3:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_fDc3:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_fDc3:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_fDc3 span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_dbEo{display:inline}.tag_CdAb{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_Kmtu{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_Mwcu{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_Mwcu:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_v2Im:after,.tocCollapsibleExpanded_tdNM{transform:none}.tocCollapsible_slZy{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_z8nw>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_z8nw ul li{margin:.4rem .8rem}.tocCollapsibleContent_z8nw a{display:block}.tableOfContents_W2sd{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.anchorWithStickyNavbar_y6XU{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_yKms{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;-moz-user-select:none;user-select:none}.hash-link:before{content:"#"}.footerLogoLink_rFf8:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.skipToContent_Wp8_{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem;z-index:calc(var(--ifm-z-index-fixed) + 1)}.skipToContent_Wp8_:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_shyj{line-height:0;padding:0}.content_mecL{font-size:85%;padding:5px 0;text-align:center}.content_mecL a{color:inherit;text-decoration:underline}.announcementBar_xBKY{align-items:center;background-color:var(--ifm-color-white);border-bottom:1px solid var(--ifm-color-emphasis-100);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}.announcementBarPlaceholder_LNw6{flex:0 0 10px}.announcementBarClose_iPqh{align-self:stretch;flex:0 0 30px}.toggle_ovhU{height:2rem;width:2rem}.toggleButton_VXT7{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButton_VXT7:hover{background:var(--ifm-color-emphasis-200)}.toggleButtonDisabled_BkVM{cursor:not-allowed}.darkNavbarColorModeToggle_LHBs:hover{background:var(--ifm-color-gray-800)}[data-theme=dark] .themedImage--dark_g84L,[data-theme=light] .themedImage--light_uXSA{display:initial}.iconExternalLink_Pq0g{margin-left:.3rem}.iconLanguage_UCp_{margin-right:5px;vertical-align:text-bottom}.navbarHideable_evHJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_JVAT{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_Hzkc{color:red;white-space:pre-wrap}.buttonGroup_wK9r button,.codeBlockContainer_irTt{background:var(--prism-background-color);color:var(--prism-color)}body:not(.navigation-with-keyboard) :not(input):focus{outline:0}.footerLogoLink_rFf8{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.mainWrapper_flzm{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.codeBlockContainer_irTt{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_A2pm{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_TTvJ{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_CzQn{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_TTvJ+.codeBlockContent_A2pm .codeBlock_CzQn{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_zL7B{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_vdtm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup_wK9r{-moz-column-gap:.2rem;column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup_wK9r button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup_wK9r button:focus-visible,.buttonGroup_wK9r button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup_wK9r button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_esxu{counter-increment:a;display:table-row}.codeLineNumber_OEcf{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_OEcf:before{content:counter(a);opacity:.4}.codeLineContent_rPCR{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_JhZC{opacity:1!important}.copyButtonIcons_H3Zv{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_fvwI,.copyButtonSuccessIcon_lFj9{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_lFj9{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_JhZC .copyButtonIcon_fvwI{opacity:0;transform:scale(.33)}.copyButtonCopied_JhZC .copyButtonSuccessIcon_lFj9{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_TyEO{height:1.2rem;width:1.2rem}.details_fuz7{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_fuz7>summary{cursor:pointer;padding-left:1rem;position:relative}.details_fuz7>summary::-webkit-details-marker{display:none}.details_fuz7>summary:before{border-color:transparent transparent transparent var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_L5_A{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_uAm8{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.img_CpET{height:auto}.admonition__AX7{margin-bottom:1em}.admonitionHeading_wRvQ{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.3rem}.admonitionHeading_wRvQ code{text-transform:none}.admonitionIcon_XDxU{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_XDxU svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_PRsb{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_GNNc{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.backToTopButton_q4Aj{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_q4Aj:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_zi2D{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:hsla(0,0%,100%,.05);--docusaurus-collapse-button-bg-hover:hsla(0,0%,100%,.1)}.collapseSidebarButton_mFa3{display:none;margin:0}.docSidebarContainer_wP7F,.sidebarLogo_yHun{display:none}.docMainContainer_Wszh,.docPage_Vt1s{display:flex;width:100%}.docPage_Vt1s{flex:1 0}.docsWrapper_gQIK{display:flex;flex:1 0 auto}@media (min-width:997px){.collapseSidebarButton_mFa3,.expandButton_juOp{background-color:var(--docusaurus-collapse-button-bg)}.lastUpdated_Kmtu{text-align:right}.tocMobile_bovb{display:none}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_iPqh,.announcementBarPlaceholder_LNw6{flex-basis:50px}.searchBox_TRjY{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.docItemCol_VUf3{max-width:75%!important}.collapseSidebarButton_mFa3{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_R3xe{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_pWNO,[dir=rtl] .collapseSidebarButtonIcon_R3xe{transform:rotate(0)}.collapseSidebarButton_mFa3:focus,.collapseSidebarButton_mFa3:hover,.expandButton_juOp:focus,.expandButton_juOp:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_hp7F{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_vk4N{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_vk4N{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_ksAN{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_Dcc5{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_jG7M{padding-top:0}.sidebarHidden_xNWg{opacity:0;visibility:hidden}.sidebarLogo_yHun{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_yHun img{height:2rem;margin-right:.5rem}.expandButton_juOp{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_pWNO{transform:rotate(180deg)}.docSidebarContainer_wP7F{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_geWl{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_ZzZx{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_Wszh{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_bNcs{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_UUf4{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_b7VH,.footer__link-separator,.navbar__item,.tableOfContents_W2sd{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.docItemContainer_Z3DR{padding:0 .3rem}.searchBox_TRjY{position:absolute;right:var(--ifm-navbar-padding-horizontal)}}@media only screen and (max-width:768px){.contents{margin-left:2rem!important;margin-right:2rem!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}}@media (hover:hover){.backToTopButton_q4Aj:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_xBKY,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_bovb{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_zL7B{white-space:pre-wrap}} \ No newline at end of file diff --git a/assets/js/00cf5318.224c4b2e.js b/assets/js/00cf5318.224c4b2e.js deleted file mode 100644 index 81925b3c77..0000000000 --- a/assets/js/00cf5318.224c4b2e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2216],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{g:()=>y});var r=t(19982),o=t(60024),a=t(53800),i=t(49361),s=t(29901),p=t(43346);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(73268),o=t(68039),a=(t(29901),t(57522)),i=t(18724),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"scopes",title:"Scopes",description:"",source:"@site/docs/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/next/scopes",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/next/"},next:{title:"Keywords",permalink:"/docs/next/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.Z)(e,s);return(0,a.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"scopes"},"Scopes"),(0,a.kt)(i.g,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/00cf5318.90f3c746.js b/assets/js/00cf5318.90f3c746.js new file mode 100644 index 0000000000..dcef30b276 --- /dev/null +++ b/assets/js/00cf5318.90f3c746.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5123],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{$:()=>y});var r=t(29093),o=t(57089),a=t(1434),i=t(75768),s=t(67308),p=t(8426);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(37782),o=t(32345),a=(t(67308),t(62757)),i=t(72375),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"scopes",title:"Scopes",description:"",source:"@site/docs/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/next/scopes",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/next/"},next:{title:"Keywords",permalink:"/docs/next/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.A)(e,s);return(0,a.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"scopes"},"Scopes"),(0,a.yg)(i.$,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/01a43ec3.0a482f31.js b/assets/js/01a43ec3.0a482f31.js deleted file mode 100644 index 4d73f47339..0000000000 --- a/assets/js/01a43ec3.0a482f31.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4888],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>b});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),i=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},s=function(e){var t=i(e.components);return n.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(r),f=o,b=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return r?n.createElement(b,l(l({ref:t},s),{},{components:r})):n.createElement(b,l({ref:t},s))}));function b(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var p={};for(var c in t)hasOwnProperty.call(t,c)&&(p[c]=t[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>c,default:()=>b,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.25-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/1.0.25-alpha/api/problems",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function b(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problems"},"Problems"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}b.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/01a43ec3.643c5589.js b/assets/js/01a43ec3.643c5589.js new file mode 100644 index 0000000000..edbf735ae1 --- /dev/null +++ b/assets/js/01a43ec3.643c5589.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2507],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=n.createContext({}),i=function(e){var r=n.useContext(c),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},s=function(e){var r=i(e.components);return n.createElement(c.Provider,{value:r},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(t),f=o,y=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return t?n.createElement(y,l(l({ref:r},s),{},{components:t})):n.createElement(y,l({ref:r},s))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var p={};for(var c in r)hasOwnProperty.call(r,c)&&(p[c]=r[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.25-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/1.0.25-alpha/api/problems",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"problems"},"Problems"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/02c148a9.cbd875c3.js b/assets/js/02c148a9.cbd875c3.js deleted file mode 100644 index 46462b0f88..0000000000 --- a/assets/js/02c148a9.cbd875c3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1531],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),m=a,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||o;return r?n.createElement(y,c(c({ref:t},u),{},{components:r})):n.createElement(y,c({ref:t},u))}));function y(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,c=new Array(o);c[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.20-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.20-alpha/api/ark",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,a.Z)(e,c);return(0,o.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"ark"},"ark"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/02c148a9.dd18d9d6.js b/assets/js/02c148a9.dd18d9d6.js new file mode 100644 index 0000000000..3f4671b8e3 --- /dev/null +++ b/assets/js/02c148a9.dd18d9d6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[247],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},u=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(t),y=a,m=s["".concat(p,".").concat(y)]||s[y]||f[y]||o;return t?n.createElement(m,c(c({ref:r},u),{},{components:t})):n.createElement(m,c({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,c=new Array(o);c[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.20-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.20-alpha/api/ark",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},y="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,c);return(0,o.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"ark"},"ark"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0493d4c1.5ff354dc.js b/assets/js/0493d4c1.5ff354dc.js new file mode 100644 index 0000000000..486c2dded8 --- /dev/null +++ b/assets/js/0493d4c1.5ff354dc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9247],{62757:(e,r,t)=>{t.d(r,{xA:()=>y,yg:()=>g});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),u=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},y=function(e){var r=u(e.components);return n.createElement(p.Provider,{value:r},e.children)},c="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),c=u(t),s=a,g=c["".concat(p,".").concat(s)]||c[s]||f[s]||l;return t?n.createElement(g,o(o({ref:r},y),{},{components:t})):n.createElement(g,o({ref:r},y))}));function g(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[c]="string"==typeof e?e:a,o[1]=i;for(var u=2;u{t.r(r),t.d(r,{assets:()=>y,contentTitle:()=>p,default:()=>g,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],i={hide_table_of_contents:!0},p="arrayOf",u={unversionedId:"api/arrayof",id:"api/arrayof",title:"arrayOf",description:"operator",source:"@site/docs/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/next/api/arrayof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:c},s="wrapper";function g(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"arrayof"},"arrayOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/next/api/arrayof"},"arrayOf"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"T[]" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0493d4c1.d86313ec.js b/assets/js/0493d4c1.d86313ec.js deleted file mode 100644 index b2a2762b66..0000000000 --- a/assets/js/0493d4c1.d86313ec.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4665],{57522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),u=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(p.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(p,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[f]="string"==typeof e?e:a,o[1]=i;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>u,toc:()=>f});var n=t(73268),a=t(68039),l=(t(29901),t(57522)),o=["components"],i={hide_table_of_contents:!0},p="arrayOf",u={unversionedId:"api/arrayof",id:"api/arrayof",title:"arrayOf",description:"operator",source:"@site/docs/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/next/api/arrayof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/next/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/04ca6b23.b9a3fee8.js b/assets/js/04ca6b23.b9a3fee8.js new file mode 100644 index 0000000000..cdc0e90658 --- /dev/null +++ b/assets/js/04ca6b23.b9a3fee8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9114],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),s=o,g=y["".concat(i,".").concat(s)]||y[s]||f[s]||a;return t?n.createElement(g,l(l({ref:r},u),{},{components:t})):n.createElement(g,l({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=s;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>g,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.20-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.20-alpha/api/keyof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:y},s="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"keyof"},"keyOf"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/keyof"},"keyOf"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"keyOf(T) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/04ca6b23.ecd21679.js b/assets/js/04ca6b23.ecd21679.js deleted file mode 100644 index f64f78c7e8..0000000000 --- a/assets/js/04ca6b23.ecd21679.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2154],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>k});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),c=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(i.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,k=f["".concat(i,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(k,l(l({ref:t},u),{},{components:r})):n.createElement(k,l({ref:t},u))}));function k(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=y;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[f]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>f});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.20-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.20-alpha/api/keyof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function k(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"keyof"},"keyOf"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/keyof"},"keyOf"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"keyOf(T) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.kt)("br",null))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/04e96f40.24e970f1.js b/assets/js/04e96f40.24e970f1.js new file mode 100644 index 0000000000..e5af094485 --- /dev/null +++ b/assets/js/04e96f40.24e970f1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8289],{62757:(e,t,n)=>{n.d(t,{xA:()=>d,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=a.createContext({}),g=function(e){var t=a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=g(e.components);return a.createElement(o.Provider,{value:t},e.children)},y="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,d=p(e,["components","mdxType","originalType","parentName"]),y=g(n),u=r,s=y["".concat(o,".").concat(u)]||y[u]||m[u]||l;return n?a.createElement(s,i(i({ref:t},d),{},{components:n})):a.createElement(s,i({ref:t},d))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=u;var p={};for(var o in t)hasOwnProperty.call(t,o)&&(p[o]=t[o]);p.originalType=e,p[y]="string"==typeof e?e:r,i[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>s,frontMatter:()=>p,metadata:()=>g,toc:()=>y});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",g={unversionedId:"api/validationscope",id:"version-1.0.26-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.26-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.26-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},d={},y=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],m={toc:y},u="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,i);return(0,l.yg)(u,(0,a.A)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"validationscope"},"validationScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/04e96f40.5d1c8838.js b/assets/js/04e96f40.5d1c8838.js deleted file mode 100644 index 5cdf82844b..0000000000 --- a/assets/js/04e96f40.5d1c8838.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1066],{57522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var o=a.createContext({}),d=function(t){var e=a.useContext(o),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},m=function(t){var e=d(t.components);return a.createElement(o.Provider,{value:e},t.children)},u="mdxType",s={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},c=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,m=p(t,["components","mdxType","originalType","parentName"]),u=d(n),c=r,k=u["".concat(o,".").concat(c)]||u[c]||s[c]||l;return n?a.createElement(k,i(i({ref:e},m),{},{components:n})):a.createElement(k,i({ref:e},m))}));function k(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=c;var p={};for(var o in e)hasOwnProperty.call(e,o)&&(p[o]=e[o]);p.originalType=t,p[u]="string"==typeof t?t:r,i[1]=p;for(var d=2;d{n.r(e),n.d(e,{assets:()=>m,contentTitle:()=>o,default:()=>k,frontMatter:()=>p,metadata:()=>d,toc:()=>u});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.26-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.26-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.26-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},m={},u=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],s={toc:u},c="wrapper";function k(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(c,(0,a.Z)({},s,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"validationscope"},"validationScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/05dfa499.c9864972.js b/assets/js/05dfa499.7369bff5.js similarity index 55% rename from assets/js/05dfa499.c9864972.js rename to assets/js/05dfa499.7369bff5.js index 45aa43ffd7..8735d23bd8 100644 --- a/assets/js/05dfa499.c9864972.js +++ b/assets/js/05dfa499.7369bff5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6418],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),a=n(68039),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.21-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.21-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5133],{62757:(e,t,n)=>{n.d(t,{xA:()=>u,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},y=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),y=a,m=s["".concat(c,".").concat(y)]||s[y]||f[y]||o;return n?r.createElement(m,l(l({ref:t},u),{},{components:n})):r.createElement(m,l({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(37782),a=n(32345),o=(n(67308),n(62757)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.21-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.21-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},y="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,l);return(0,o.yg)(y,(0,r.A)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"instanceof"},"instanceOf"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/instanceof"},"instanceOf"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.yg)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/07cf2946.4a436781.js b/assets/js/07cf2946.4a436781.js deleted file mode 100644 index ced98d04cf..0000000000 --- a/assets/js/07cf2946.4a436781.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7606],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(r),f=o,v=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return r?n.createElement(v,l(l({ref:t},u),{},{components:r})):n.createElement(v,l({ref:t},u))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>v,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.28-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.28-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function v(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.28-alpha/api/resolvednode"},"node"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/07cf2946.f4702367.js b/assets/js/07cf2946.f4702367.js new file mode 100644 index 0000000000..8a34709894 --- /dev/null +++ b/assets/js/07cf2946.f4702367.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7318],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(t),f=o,y=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return t?n.createElement(y,l(l({ref:r},u),{},{components:t})):n.createElement(y,l({ref:r},u))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.28-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.28-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.28-alpha/api/resolvednode"},"node"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/08c79887.1b4b2df2.js b/assets/js/08c79887.1b4b2df2.js new file mode 100644 index 0000000000..911c20bca9 --- /dev/null +++ b/assets/js/08c79887.1b4b2df2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3261],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>g});var n=r(67308);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,o=e.originalType,p=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),s=c(r),f=i,g=s["".concat(p,".").concat(f)]||s[f]||y[f]||o;return r?n.createElement(g,l(l({ref:t},u),{},{components:r})):n.createElement(g,l({ref:t},u))}));function g(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=r.length,l=new Array(o);l[0]=f;var a={};for(var p in t)hasOwnProperty.call(t,p)&&(a[p]=t[p]);a.originalType=e,a[s]="string"==typeof e?e:i,l[1]=a;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>g,frontMatter:()=>a,metadata:()=>c,toc:()=>s});var n=r(37782),i=r(32345),o=(r(67308),r(62757)),l=["components"],a={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"version-1.0.29-alpha/api/intersection",title:"intersection",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/api/intersection",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:s},f="wrapper";function g(e){var t=e.components,r=(0,i.A)(e,l);return(0,o.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"intersection"},"intersection"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/api/intersection"},"&"))),(0,o.yg)("h2",{id:"string"},"string"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'"L&R" ',(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"intersection(L,R) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,o.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/08c79887.429ae1c3.js b/assets/js/08c79887.429ae1c3.js deleted file mode 100644 index 31a6ca4b8a..0000000000 --- a/assets/js/08c79887.429ae1c3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7192],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,p=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),s=c(r),m=o,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||i;return r?n.createElement(y,l(l({ref:t},u),{},{components:r})):n.createElement(y,l({ref:t},u))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,l=new Array(i);l[0]=m;var a={};for(var p in t)hasOwnProperty.call(t,p)&&(a[p]=t[p]);a.originalType=e,a[s]="string"==typeof e?e:o,l[1]=a;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>a,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),i=(r(29901),r(57522)),l=["components"],a={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"version-1.0.29-alpha/api/intersection",title:"intersection",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/api/intersection",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,l);return(0,i.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"intersection"},"intersection"),(0,i.kt)("h2",{id:"operator"},"operator"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"/docs/api/intersection"},"&"))),(0,i.kt)("h2",{id:"string"},"string"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'"L&R" ',(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"tuple"},"tuple"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"helper"},"helper"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"intersection(L,R) ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,i.kt)("br",null))))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/094d205f.a6b78885.js b/assets/js/094d205f.f467be41.js similarity index 55% rename from assets/js/094d205f.a6b78885.js rename to assets/js/094d205f.f467be41.js index f8100f26b4..8bcd8aa760 100644 --- a/assets/js/094d205f.a6b78885.js +++ b/assets/js/094d205f.f467be41.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9751],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),a=n(68039),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.22-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.22-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.22-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9889],{62757:(e,t,n)=>{n.d(t,{xA:()=>u,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},y=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),y=a,m=s["".concat(c,".").concat(y)]||s[y]||f[y]||o;return n?r.createElement(m,l(l({ref:t},u),{},{components:n})):r.createElement(m,l({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(37782),a=n(32345),o=(n(67308),n(62757)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.22-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.22-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},y="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,l);return(0,o.yg)(y,(0,r.A)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"instanceof"},"instanceOf"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.22-alpha/api/instanceof"},"instanceOf"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.yg)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0976b861.8d23b6de.js b/assets/js/0976b861.482c29e1.js similarity index 98% rename from assets/js/0976b861.8d23b6de.js rename to assets/js/0976b861.482c29e1.js index ce5bbfc7c1..d749a93abf 100644 --- a/assets/js/0976b861.8d23b6de.js +++ b/assets/js/0976b861.482c29e1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4992],{44629:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"1.0.23-alpha","label":"1.0.23-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.23-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.23-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.23-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.23-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.23-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.23-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8668],{14375:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"1.0.23-alpha","label":"1.0.23-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.23-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.23-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.23-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.23-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.23-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.23-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/0a1349f1.91d30fa2.js b/assets/js/0a1349f1.04595add.js similarity index 59% rename from assets/js/0a1349f1.91d30fa2.js rename to assets/js/0a1349f1.04595add.js index 7285a94623..a6cb0a897e 100644 --- a/assets/js/0a1349f1.91d30fa2.js +++ b/assets/js/0a1349f1.04595add.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3345],{57522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(29901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.20-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.20-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3968],{62757:(e,n,r)=>{r.d(n,{xA:()=>l,yg:()=>g});var t=r(67308);function a(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=a,g=u["".concat(c,".").concat(m)]||u[m]||f[m]||o;return r?t.createElement(g,i(i({ref:n},l),{},{components:r})):t.createElement(g,i({ref:n},l))}));function g(e,n){var r=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>g,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(37782),a=r(32345),o=(r(67308),r(62757)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.20-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.20-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function g(e){var n=e.components,r=(0,a.A)(e,i);return(0,o.yg)(m,(0,t.A)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"arkscope"},"arkScope"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0a39420a.12d74bd2.js b/assets/js/0a39420a.5b2a07a1.js similarity index 59% rename from assets/js/0a39420a.12d74bd2.js rename to assets/js/0a39420a.5b2a07a1.js index 3ef2e0d14a..8f5b6f9d5e 100644 --- a/assets/js/0a39420a.12d74bd2.js +++ b/assets/js/0a39420a.5b2a07a1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4990],{57522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(29901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.21-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.21-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4669],{62757:(e,n,r)=>{r.d(n,{xA:()=>l,yg:()=>g});var t=r(67308);function a(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=a,g=u["".concat(c,".").concat(m)]||u[m]||f[m]||o;return r?t.createElement(g,i(i({ref:n},l),{},{components:r})):t.createElement(g,i({ref:n},l))}));function g(e,n){var r=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>g,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(37782),a=r(32345),o=(r(67308),r(62757)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.21-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.21-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function g(e){var n=e.components,r=(0,a.A)(e,i);return(0,o.yg)(m,(0,t.A)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"arkscope"},"arkScope"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0a61f398.5913b2e7.js b/assets/js/0a61f398.5913b2e7.js deleted file mode 100644 index 08a7e82ec0..0000000000 --- a/assets/js/0a61f398.5913b2e7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4643],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.21-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.21-alpha/api/problem",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0a61f398.b9d66215.js b/assets/js/0a61f398.b9d66215.js new file mode 100644 index 0000000000..1723f7897d --- /dev/null +++ b/assets/js/0a61f398.b9d66215.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1683],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},s=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},d=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(t),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return t?n.createElement(f,c(c({ref:r},s),{},{components:t})):n.createElement(f,c({ref:r},s))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,c=new Array(a);c[0]=d;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.21-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.21-alpha/api/problem",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,c);return(0,a.yg)(d,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"problem"},"Problem"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0a7973dc.28633019.js b/assets/js/0a7973dc.28633019.js deleted file mode 100644 index 16c10f5315..0000000000 --- a/assets/js/0a7973dc.28633019.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[267],{57522:(e,t,r)=>{r.d(t,{Zo:()=>l,kt:()=>y});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),d=o,y=u["".concat(s,".").concat(d)]||u[d]||f[d]||a;return r?n.createElement(y,i(i({ref:t},l),{},{components:r})):n.createElement(y,i({ref:t},l))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=d;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.24-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.24-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.24-alpha/api",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.24-alpha/api/operators"}},l={},u=[],f={toc:u},d="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(d,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4f719b32.d7c65598.js b/assets/js/0a7973dc.b13f9958.js similarity index 59% rename from assets/js/4f719b32.d7c65598.js rename to assets/js/0a7973dc.b13f9958.js index 46e1be2eff..0bad72754d 100644 --- a/assets/js/4f719b32.d7c65598.js +++ b/assets/js/0a7973dc.b13f9958.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4603],{57522:(e,t,r)=>{r.d(t,{Zo:()=>l,kt:()=>y});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),d=o,y=u["".concat(s,".").concat(d)]||u[d]||f[d]||a;return r?n.createElement(y,i(i({ref:t},l),{},{components:r})):n.createElement(y,i({ref:t},l))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=d;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.22-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.22-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.22-alpha/api",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.22-alpha/api/operators"}},l={},u=[],f={toc:u},d="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(d,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2419],{62757:(e,t,r)=>{r.d(t,{xA:()=>l,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),f=o,d=u["".concat(s,".").concat(f)]||u[f]||y[f]||a;return r?n.createElement(d,i(i({ref:t},l),{},{components:r})):n.createElement(d,i({ref:t},l))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=f;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.24-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.24-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.24-alpha/api",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.24-alpha/api/operators"}},l={},u=[],y={toc:u},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"api"},"API"),(0,a.yg)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.yg)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.yg)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0bd12973.0f08bcdf.js b/assets/js/0bd12973.0f08bcdf.js new file mode 100644 index 0000000000..75767bea8f --- /dev/null +++ b/assets/js/0bd12973.0f08bcdf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2013],{62757:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>f});var r=t(67308);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{$:()=>y});var r=t(29093),a=t(57089),o=t(1434),i=t(75768),s=t(67308),p=t(8426);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(37782),a=t(32345),o=(t(67308),t(62757)),i=t(53542),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.20-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.20-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.20-alpha/",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.20-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.A)(e,s);return(0,o.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"getting-started"},"Getting Started"),(0,o.yg)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.yg)("sub",null,(0,o.yg)("sub",null,"\ud83d\udce6",(0,o.yg)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.yg)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.yg)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.yg)("code",null,"npm install arktype"),(0,o.yg)("sub",null,"(or whatever package manager you prefer)"),(0,o.yg)("br",null),(0,o.yg)("p",null,"Our types are tested in ",(0,o.yg)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.yg)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.yg)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.yg)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.yg)("p",null,(0,o.yg)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.yg)("h2",{id:"your-first-type"},"Your first type"),(0,o.yg)(i.$,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0bd12973.ee1d0d3d.js b/assets/js/0bd12973.ee1d0d3d.js deleted file mode 100644 index 2bfe534bde..0000000000 --- a/assets/js/0bd12973.ee1d0d3d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8709],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(19982),a=t(60024),o=t(53800),i=t(49361),s=t(29901),p=t(43346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(73268),a=t(68039),o=(t(29901),t(57522)),i=t(66185),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.20-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.20-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.20-alpha/",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.20-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0be3f0b3.5e06bed4.js b/assets/js/0be3f0b3.5e06bed4.js new file mode 100644 index 0000000000..01ca5d6657 --- /dev/null +++ b/assets/js/0be3f0b3.5e06bed4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7146],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var y=a.createContext({}),g=function(e){var t=a.useContext(y),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=g(e.components);return a.createElement(y.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,y=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),d=g(n),m=r,s=d["".concat(y,".").concat(m)]||d[m]||u[m]||l;return n?a.createElement(s,o(o({ref:t},p),{},{components:n})):a.createElement(s,o({ref:t},p))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=m;var i={};for(var y in t)hasOwnProperty.call(t,y)&&(i[y]=t[y]);i.originalType=e,i[d]="string"==typeof e?e:r,o[1]=i;for(var g=2;g{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>y,default:()=>s,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),o=["components"],i={hide_table_of_contents:!0},y="tsKeywordsScope",g={unversionedId:"api/tskeywordsscope",id:"version-1.0.21-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.21-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.21-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},p={},d=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],u={toc:d},m="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,o);return(0,l.yg)(m,(0,a.A)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0be3f0b3.f263206e.js b/assets/js/0be3f0b3.f263206e.js deleted file mode 100644 index 1e9221cde7..0000000000 --- a/assets/js/0be3f0b3.f263206e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2651],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.21-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.21-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.21-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0d0d98a4.658c1dfb.js b/assets/js/0d0d98a4.658c1dfb.js deleted file mode 100644 index c040ca542e..0000000000 --- a/assets/js/0d0d98a4.658c1dfb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6101],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.23-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.23-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.23-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0d0d98a4.ea32cffb.js b/assets/js/0d0d98a4.ea32cffb.js new file mode 100644 index 0000000000..42564ba5bd --- /dev/null +++ b/assets/js/0d0d98a4.ea32cffb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6819],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var y=a.createContext({}),g=function(e){var t=a.useContext(y),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=g(e.components);return a.createElement(y.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,y=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),d=g(n),m=r,s=d["".concat(y,".").concat(m)]||d[m]||u[m]||l;return n?a.createElement(s,o(o({ref:t},p),{},{components:n})):a.createElement(s,o({ref:t},p))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=m;var i={};for(var y in t)hasOwnProperty.call(t,y)&&(i[y]=t[y]);i.originalType=e,i[d]="string"==typeof e?e:r,o[1]=i;for(var g=2;g{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>y,default:()=>s,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),o=["components"],i={hide_table_of_contents:!0},y="tsKeywordsScope",g={unversionedId:"api/tskeywordsscope",id:"version-1.0.23-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.23-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.23-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},p={},d=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],u={toc:d},m="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,o);return(0,l.yg)(m,(0,a.A)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0dbc098c.b38eb851.js b/assets/js/0dbc098c.90397218.js similarity index 62% rename from assets/js/0dbc098c.b38eb851.js rename to assets/js/0dbc098c.90397218.js index c113b6d569..36572962b2 100644 --- a/assets/js/0dbc098c.b38eb851.js +++ b/assets/js/0dbc098c.90397218.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9780],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.22-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.22-alpha/api/type",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5472],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),y=c(r),f=o,d=y["".concat(l,".").concat(f)]||y[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[y]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>y});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.22-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.22-alpha/api/type",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],s={toc:y},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,p);return(0,a.yg)(f,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"type"},"type"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.yg)("hr",null),(0,a.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.yg)("h1",{id:"type-1"},"Type"),(0,a.yg)("h2",{id:"text-1"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0efbc173.cd1b1347.js b/assets/js/0efbc173.abe107db.js similarity index 81% rename from assets/js/0efbc173.cd1b1347.js rename to assets/js/0efbc173.abe107db.js index 26255d1142..80fdd344c0 100644 --- a/assets/js/0efbc173.cd1b1347.js +++ b/assets/js/0efbc173.abe107db.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4174],{57522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.19-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.19-alpha/api/infer",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"infer"},"Infer"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7532],{62757:(e,t,r)=>{r.d(t,{xA:()=>f,yg:()=>m});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.19-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.19-alpha/api/infer",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(y,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"infer"},"Infer"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0f59f13c.4ecfc8a5.js b/assets/js/0f59f13c.4ecfc8a5.js deleted file mode 100644 index 010b540afa..0000000000 --- a/assets/js/0f59f13c.4ecfc8a5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3718],{57522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(i,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>f});var n=t(73268),a=t(68039),l=(t(29901),t(57522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.20-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.20-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0f59f13c.6e3c10e6.js b/assets/js/0f59f13c.6e3c10e6.js new file mode 100644 index 0000000000..ac02b7d77b --- /dev/null +++ b/assets/js/0f59f13c.6e3c10e6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4022],{62757:(e,r,t)=>{t.d(r,{xA:()=>y,yg:()=>g});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},y=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},c="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=u(t),s=a,g=c["".concat(i,".").concat(s)]||c[s]||f[s]||l;return t?n.createElement(g,o(o({ref:r},y),{},{components:t})):n.createElement(g,o({ref:r},y))}));function g(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>y,contentTitle:()=>i,default:()=>g,frontMatter:()=>p,metadata:()=>u,toc:()=>c});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.20-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.20-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:c},s="wrapper";function g(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"arrayof"},"arrayOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/arrayof"},"arrayOf"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"T[]" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0f77207c.2f6e89b8.js b/assets/js/0f77207c.2f6e89b8.js new file mode 100644 index 0000000000..4a0cec0156 --- /dev/null +++ b/assets/js/0f77207c.2f6e89b8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8007],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>v});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var u=n.createContext({}),i=function(e){var r=n.useContext(u),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=i(e.components);return n.createElement(u.Provider,{value:r},e.children)},f="mdxType",y={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(t),s=a,v=f["".concat(u,".").concat(s)]||f[s]||y[s]||l;return t?n.createElement(v,o(o({ref:r},c),{},{components:t})):n.createElement(v,o({ref:r},c))}));function v(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var u in r)hasOwnProperty.call(r,u)&&(p[u]=r[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>u,default:()=>v,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.21-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.21-alpha/api/valueof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:f},s="wrapper";function v(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},y,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"valueof"},"valueOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/valueof"},"==="))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'["===", T]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"valueOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.yg)("br",null))))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0f77207c.eb7ce7c5.js b/assets/js/0f77207c.eb7ce7c5.js deleted file mode 100644 index d7a3baca97..0000000000 --- a/assets/js/0f77207c.eb7ce7c5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8253],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=n.createContext({}),i=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},c=function(e){var t=i(e.components);return n.createElement(u.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(r),v=a,m=f["".concat(u,".").concat(v)]||f[v]||s[v]||l;return r?n.createElement(m,o(o({ref:t},c),{},{components:r})):n.createElement(m,o({ref:t},c))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,o=new Array(l);o[0]=v;var p={};for(var u in t)hasOwnProperty.call(t,u)&&(p[u]=t[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=r(73268),a=r(68039),l=(r(29901),r(57522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.21-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.21-alpha/api/valueof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},v="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,o);return(0,l.kt)(v,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"valueof"},"valueOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/valueof"},"==="))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'["===", T]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"valueOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/10ae884d.0261d54e.js b/assets/js/10ae884d.0261d54e.js new file mode 100644 index 0000000000..c90f4543d0 --- /dev/null +++ b/assets/js/10ae884d.0261d54e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5722],{62757:(e,r,t)=>{t.d(r,{xA:()=>y,yg:()=>g});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},y=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},c="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=u(t),s=a,g=c["".concat(i,".").concat(s)]||c[s]||f[s]||l;return t?n.createElement(g,o(o({ref:r},y),{},{components:t})):n.createElement(g,o({ref:r},y))}));function g(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>y,contentTitle:()=>i,default:()=>g,frontMatter:()=>p,metadata:()=>u,toc:()=>c});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.19-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.19-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:c},s="wrapper";function g(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"arrayof"},"arrayOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/arrayof"},"arrayOf"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"T[]" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/10ae884d.26688dbf.js b/assets/js/10ae884d.26688dbf.js deleted file mode 100644 index 6ccbc9c606..0000000000 --- a/assets/js/10ae884d.26688dbf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6956],{57522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(i,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>f});var n=t(73268),a=t(68039),l=(t(29901),t(57522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.19-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.19-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/10bb0f04.9b03b184.js b/assets/js/10bb0f04.9b03b184.js new file mode 100644 index 0000000000..a86b6ce4bb --- /dev/null +++ b/assets/js/10bb0f04.9b03b184.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7906],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=n.createContext({}),i=function(e){var r=n.useContext(c),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},s=function(e){var r=i(e.components);return n.createElement(c.Provider,{value:r},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(t),f=o,y=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return t?n.createElement(y,l(l({ref:r},s),{},{components:t})):n.createElement(y,l({ref:r},s))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var p={};for(var c in r)hasOwnProperty.call(r,c)&&(p[c]=r[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.22-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/1.0.22-alpha/api/problems",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"problems"},"Problems"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/10bb0f04.b4dfcc03.js b/assets/js/10bb0f04.b4dfcc03.js deleted file mode 100644 index 0f11c8d9fb..0000000000 --- a/assets/js/10bb0f04.b4dfcc03.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5124],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>b});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),i=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},s=function(e){var t=i(e.components);return n.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(r),f=o,b=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return r?n.createElement(b,l(l({ref:t},s),{},{components:r})):n.createElement(b,l({ref:t},s))}));function b(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var p={};for(var c in t)hasOwnProperty.call(t,c)&&(p[c]=t[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>c,default:()=>b,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.22-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/1.0.22-alpha/api/problems",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function b(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problems"},"Problems"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}b.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/114efe75.9b9ce420.js b/assets/js/114efe75.9b9ce420.js deleted file mode 100644 index d901a39d60..0000000000 --- a/assets/js/114efe75.9b9ce420.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3559],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.21-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.21-alpha/api/morph",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/114efe75.c95eec32.js b/assets/js/114efe75.c95eec32.js new file mode 100644 index 0000000000..38aa9d5304 --- /dev/null +++ b/assets/js/114efe75.c95eec32.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7319],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),y=u(t),m=o,f=y["".concat(i,".").concat(m)]||y[m]||s[m]||a;return t?n.createElement(f,p(p({ref:r},c),{},{components:t})):n.createElement(f,p({ref:r},c))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=m;var l={};for(var i in r)hasOwnProperty.call(r,i)&&(l[i]=r[i]);l.originalType=e,l[y]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>f,frontMatter:()=>l,metadata:()=>u,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.21-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.21-alpha/api/morph",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},m="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(m,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"morph"},"morph"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/morph"},"|",">"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/119c85c3.ee1144ae.js b/assets/js/119c85c3.095d3810.js similarity index 55% rename from assets/js/119c85c3.ee1144ae.js rename to assets/js/119c85c3.095d3810.js index 33fa3ba015..dc778a798f 100644 --- a/assets/js/119c85c3.ee1144ae.js +++ b/assets/js/119c85c3.095d3810.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6075],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),a=n(68039),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.20-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.20-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1478],{62757:(e,t,n)=>{n.d(t,{xA:()=>u,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},y=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),y=a,m=s["".concat(c,".").concat(y)]||s[y]||f[y]||o;return n?r.createElement(m,l(l({ref:t},u),{},{components:n})):r.createElement(m,l({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(37782),a=n(32345),o=(n(67308),n(62757)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.20-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.20-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},y="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,l);return(0,o.yg)(y,(0,r.A)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"instanceof"},"instanceOf"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/instanceof"},"instanceOf"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.yg)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/11b4899c.4a5b3532.js b/assets/js/11b4899c.a356c459.js similarity index 55% rename from assets/js/11b4899c.4a5b3532.js rename to assets/js/11b4899c.a356c459.js index 4b664ca666..e00830a9ae 100644 --- a/assets/js/11b4899c.4a5b3532.js +++ b/assets/js/11b4899c.a356c459.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3246],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),a=n(68039),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.27-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.27-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5438],{62757:(e,t,n)=>{n.d(t,{xA:()=>u,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},y=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),y=a,m=s["".concat(c,".").concat(y)]||s[y]||f[y]||o;return n?r.createElement(m,l(l({ref:t},u),{},{components:n})):r.createElement(m,l({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(37782),a=n(32345),o=(n(67308),n(62757)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.27-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.27-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},y="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,l);return(0,o.yg)(y,(0,r.A)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"instanceof"},"instanceOf"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/instanceof"},"instanceOf"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.yg)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/12140a58.657d6c33.js b/assets/js/12140a58.3df3a2e7.js similarity index 55% rename from assets/js/12140a58.657d6c33.js rename to assets/js/12140a58.3df3a2e7.js index a4cc42b4dd..054c819295 100644 --- a/assets/js/12140a58.657d6c33.js +++ b/assets/js/12140a58.3df3a2e7.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5787],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),a=n(68039),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.24-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.24-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6995],{62757:(e,t,n)=>{n.d(t,{xA:()=>u,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},y=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),y=a,m=s["".concat(c,".").concat(y)]||s[y]||f[y]||o;return n?r.createElement(m,l(l({ref:t},u),{},{components:n})):r.createElement(m,l({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(37782),a=n(32345),o=(n(67308),n(62757)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.24-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.24-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},y="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,l);return(0,o.yg)(y,(0,r.A)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"instanceof"},"instanceOf"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/instanceof"},"instanceOf"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.yg)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/12bb9ce5.b9a7204d.js b/assets/js/12bb9ce5.3352037f.js similarity index 74% rename from assets/js/12bb9ce5.b9a7204d.js rename to assets/js/12bb9ce5.3352037f.js index 53bb0e8a76..635f98434c 100644 --- a/assets/js/12bb9ce5.b9a7204d.js +++ b/assets/js/12bb9ce5.3352037f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3049],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(73268),o=t(68039),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.23-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.23-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.23-alpha/api/scope",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6912],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),y=o,f=u["".concat(p,".").concat(y)]||u[y]||d[y]||s;return t?r.createElement(f,a(a({ref:n},l),{},{components:t})):r.createElement(f,a({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=y;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(37782),o=t(32345),s=(t(67308),t(62757)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.23-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.23-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.23-alpha/api/scope",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},y="wrapper";function f(e){var n=e.components,t=(0,o.A)(e,a);return(0,s.yg)(y,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.yg)("h1",{id:"scope"},"scope"),(0,s.yg)("h2",{id:"text"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.yg)("hr",null),(0,s.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.yg)("h1",{id:"scope-1"},"Scope"),(0,s.yg)("h2",{id:"text-1"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/139f3ccb.38da1329.js b/assets/js/139f3ccb.38da1329.js new file mode 100644 index 0000000000..8cec61b3b7 --- /dev/null +++ b/assets/js/139f3ccb.38da1329.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5223],{62757:(e,t,r)=>{r.d(t,{xA:()=>d,yg:()=>g});var n=r(67308);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},s=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),s=a,g=c["".concat(p,".").concat(s)]||c[s]||y[s]||o;return r?n.createElement(g,l(l({ref:t},d),{},{components:r})):n.createElement(g,l({ref:t},d))}));function g(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=s;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>g,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(37782),a=r(32345),o=(r(67308),r(62757)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.23-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/1.0.23-alpha/api/validatebound",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],y={toc:c},s="wrapper";function g(e){var t=e.components,r=(0,a.A)(e,l);return(0,o.yg)(s,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"validatebound"},"validateBound"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/validatebound"},"bound"))),(0,o.yg)("h2",{id:"tablerow"},"tableRow"),(0,o.yg)("table",null,(0,o.yg)("thead",{parentName:"table"},(0,o.yg)("tr",{parentName:"thead"},(0,o.yg)("th",{parentName:"tr",align:null},"Variable"),(0,o.yg)("th",{parentName:"tr",align:null},"Description"))),(0,o.yg)("tbody",{parentName:"table"},(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"N"),(0,o.yg)("td",{parentName:"tr",align:null},"number literal")),(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"S"),(0,o.yg)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"<"),(0,o.yg)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.yg)("h2",{id:"description"},"description"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{r.d(t,{Zo:()=>d,kt:()=>b});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),m=a,b=c["".concat(p,".").concat(m)]||c[m]||s[m]||o;return r?n.createElement(b,l(l({ref:t},d),{},{components:r})):n.createElement(b,l({ref:t},d))}));function b(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>b,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.23-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/1.0.23-alpha/api/validatebound",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],s={toc:c},m="wrapper";function b(e){var t=e.components,r=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatebound"},"validateBound"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/validatebound"},"bound"))),(0,o.kt)("h2",{id:"tablerow"},"tableRow"),(0,o.kt)("table",null,(0,o.kt)("thead",{parentName:"table"},(0,o.kt)("tr",{parentName:"thead"},(0,o.kt)("th",{parentName:"tr",align:null},"Variable"),(0,o.kt)("th",{parentName:"tr",align:null},"Description"))),(0,o.kt)("tbody",{parentName:"table"},(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"N"),(0,o.kt)("td",{parentName:"tr",align:null},"number literal")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"S"),(0,o.kt)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"<"),(0,o.kt)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.kt)("h2",{id:"description"},"description"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=a,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||o;return t?n.createElement(d,l(l({ref:r},u),{},{components:t})):n.createElement(d,l({ref:r},u))}));function d(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=m;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[s]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>s});var n=t(73268),a=t(68039),o=(t(29901),t(57522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.27-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/1.0.27-alpha/api/narrow",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],f={toc:s},m="wrapper";function d(e){var r=e.components,t=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"narrow"},"narrow"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/narrow"},"=>"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"example"},"example"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3470],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),f=a,m=y["".concat(i,".").concat(f)]||y[f]||s[f]||o;return t?n.createElement(m,l(l({ref:r},u),{},{components:t})):n.createElement(m,l({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=f;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.27-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/1.0.27-alpha/api/narrow",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],s={toc:y},f="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,l);return(0,o.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"narrow"},"narrow"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/narrow"},"=>"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"example"},"example"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("pre",{parentName:"li"},(0,o.yg)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/14af8986.33af1117.js b/assets/js/14af8986.33af1117.js new file mode 100644 index 0000000000..4682ff9a88 --- /dev/null +++ b/assets/js/14af8986.33af1117.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[122],{62757:(e,n,r)=>{r.d(n,{xA:()=>c,yg:()=>f});var t=r(67308);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function a(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=t.createContext({}),p=function(e){var n=t.useContext(u),r=n;return e&&(r="function"==typeof e?e(n):a(a({},n),e)),r},c=function(e){var n=p(e.components);return t.createElement(u.Provider,{value:n},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},g=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),y=p(r),g=o,f=y["".concat(u,".").concat(g)]||y[g]||s[g]||l;return r?t.createElement(f,a(a({ref:n},c),{},{components:r})):t.createElement(f,a({ref:n},c))}));function f(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var l=r.length,a=new Array(l);a[0]=g;var i={};for(var u in n)hasOwnProperty.call(n,u)&&(i[u]=n[u]);i.originalType=e,i[y]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>f,frontMatter:()=>i,metadata:()=>p,toc:()=>y});var t=r(37782),o=r(32345),l=(r(67308),r(62757)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.21-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.21-alpha/api/union",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},g="wrapper";function f(e){var n=e.components,r=(0,o.A)(e,a);return(0,l.yg)(g,(0,t.A)({},s,r,{components:n,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"union"},"union"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/union"},"|"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"union(L,R) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/14af8986.e0219800.js b/assets/js/14af8986.e0219800.js deleted file mode 100644 index c6cb352b4b..0000000000 --- a/assets/js/14af8986.e0219800.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9370],{57522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(29901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,a(a({ref:t},c),{},{components:n})):r.createElement(d,a({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,a=new Array(l);a[0]=m;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i[s]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),o=n(68039),l=(n(29901),n(57522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.21-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.21-alpha/api/union",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/15c910ba.27b24168.js b/assets/js/15c910ba.27b24168.js deleted file mode 100644 index 5721e634b7..0000000000 --- a/assets/js/15c910ba.27b24168.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2382],{57522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d=a.createContext({}),m=function(t){var e=a.useContext(d),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(d.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,o=p(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(d,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var p={};for(var d in e)hasOwnProperty.call(e,d)&&(p[d]=e[d]);p.originalType=t,p[k]="string"==typeof t?t:r,i[1]=p;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>g,frontMatter:()=>p,metadata:()=>m,toc:()=>k});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.24-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.24-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.24-alpha/api/keywords",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.24-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.24-alpha/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/15c910ba.e50f662f.js b/assets/js/15c910ba.e50f662f.js new file mode 100644 index 0000000000..7a2a3e753b --- /dev/null +++ b/assets/js/15c910ba.e50f662f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2537],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>N});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):g(g({},t),e)),n},y=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},m="mdxType",o={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,p=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),m=d(n),u=r,N=m["".concat(p,".").concat(u)]||m[u]||o[u]||l;return n?a.createElement(N,g(g({ref:t},y),{},{components:n})):a.createElement(N,g({ref:t},y))}));function N(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,g=new Array(l);g[0]=u;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[m]="string"==typeof e?e:r,g[1]=i;for(var d=2;d{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>p,default:()=>N,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),g=["components"],i={hide_table_of_contents:!0},p="Keywords",d={unversionedId:"api/keywords",id:"version-1.0.24-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.24-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.24-alpha/api/keywords",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.24-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.24-alpha/api/operators"}},y={},m=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],o={toc:m},u="wrapper";function N(e){var t=e.components,n=(0,r.A)(e,g);return(0,l.yg)(u,(0,a.A)({},o,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"keywords"},"Keywords"),(0,l.yg)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))),(0,l.yg)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))),(0,l.yg)("h2",{id:"validationscope"},"validationScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1602d5a7.f3b8c5e1.js b/assets/js/1602d5a7.32d035dc.js similarity index 54% rename from assets/js/1602d5a7.f3b8c5e1.js rename to assets/js/1602d5a7.32d035dc.js index 2a355a0c11..b089bac1d6 100644 --- a/assets/js/1602d5a7.f3b8c5e1.js +++ b/assets/js/1602d5a7.32d035dc.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7162],{57522:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=a,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||o;return t?n.createElement(d,l(l({ref:r},u),{},{components:t})):n.createElement(d,l({ref:r},u))}));function d(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=m;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[s]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>s});var n=t(73268),a=t(68039),o=(t(29901),t(57522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.25-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/1.0.25-alpha/api/narrow",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],f={toc:s},m="wrapper";function d(e){var r=e.components,t=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"narrow"},"narrow"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/narrow"},"=>"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"example"},"example"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3481],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),f=a,m=y["".concat(i,".").concat(f)]||y[f]||s[f]||o;return t?n.createElement(m,l(l({ref:r},u),{},{components:t})):n.createElement(m,l({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=f;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.25-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/1.0.25-alpha/api/narrow",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],s={toc:y},f="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,l);return(0,o.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"narrow"},"narrow"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/narrow"},"=>"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"example"},"example"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("pre",{parentName:"li"},(0,o.yg)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/17896441.19ed1ab1.js b/assets/js/17896441.19ed1ab1.js new file mode 100644 index 0000000000..da66eacb1e --- /dev/null +++ b/assets/js/17896441.19ed1ab1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8401],{62757:(e,t,n)=>{n.d(t,{xA:()=>d,yg:()=>p});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var c=a.createContext({}),s=function(e){var t=a.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=s(e.components);return a.createElement(c.Provider,{value:t},e.children)},m="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},v=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,c=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),m=s(n),v=r,p=m["".concat(c,".").concat(v)]||m[v]||u[v]||l;return n?a.createElement(p,i(i({ref:t},d),{},{components:n})):a.createElement(p,i({ref:t},d))}));function p(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=v;var o={};for(var c in t)hasOwnProperty.call(t,c)&&(o[c]=t[c]);o.originalType=e,o[m]="string"==typeof e?e:r,i[1]=o;for(var s=2;s{n.r(t),n.d(t,{default:()=>rt});var a=n(67308),r=n(53741),l=n(93702),i=a.createContext(null);function o(e){var t=e.children,n=function(e){return(0,a.useMemo)((function(){return{metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc}}),[e])}(e.content);return a.createElement(i.Provider,{value:n},t)}function c(){var e=(0,a.useContext)(i);if(null===e)throw new l.dV("DocProvider");return e}function s(){var e,t=c(),n=t.metadata,l=t.frontMatter,i=t.assets;return a.createElement(r.be,{title:n.title,description:n.description,keywords:l.keywords,image:null!=(e=i.image)?e:l.image})}var d=n(35284),m=n(67081),u=n(37782),v=n(26145),p=n(43698);function f(e){var t=e.permalink,n=e.title,r=e.subLabel,l=e.isNext;return a.createElement(p.A,{className:(0,d.A)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t},r&&a.createElement("div",{className:"pagination-nav__sublabel"},r),a.createElement("div",{className:"pagination-nav__label"},n))}function h(e){var t=e.previous,n=e.next;return a.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,v.T)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages navigation",description:"The ARIA label for the docs pagination"})},t&&a.createElement(f,(0,u.A)({},t,{subLabel:a.createElement(v.A,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),n&&a.createElement(f,(0,u.A)({},n,{subLabel:a.createElement(v.A,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}function b(){var e=c().metadata;return a.createElement(h,{previous:e.previous,next:e.next})}var g=n(2944),E=n(40479),A=n(91443),N=n(56833),y=n(46896);var C={unreleased:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(v.A,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(v.A,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function L(e){var t=C[e.versionMetadata.banner];return a.createElement(t,e)}function T(e){var t=e.versionLabel,n=e.to,r=e.onClick;return a.createElement(v.A,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:a.createElement("b",null,a.createElement(p.A,{to:n,onClick:r},a.createElement(v.A,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function _(e){var t,n=e.className,r=e.versionMetadata,l=(0,g.A)().siteConfig.title,i=(0,E.vT)({failfast:!0}).pluginId,o=(0,N.g1)(i).savePreferredVersionName,c=(0,E.HW)(i),s=c.latestDocSuggestion,m=c.latestVersionSuggestion,u=null!=s?s:(t=m).docs.find((function(e){return e.id===t.mainDocId}));return a.createElement("div",{className:(0,d.A)(n,A.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},a.createElement("div",null,a.createElement(L,{siteTitle:l,versionMetadata:r})),a.createElement("div",{className:"margin-top--md"},a.createElement(T,{versionLabel:m.label,to:u.path,onClick:function(){return o(m.name)}})))}function x(e){var t=e.className,n=(0,y.r)();return n.banner?a.createElement(_,{className:t,versionMetadata:n}):null}function k(e){var t=e.className,n=(0,y.r)();return n.badge?a.createElement("span",{className:(0,d.A)(t,A.G.docs.docVersionBadge,"badge badge--secondary")},a.createElement(v.A,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label}},"Version: {versionLabel}")):null}function w(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt;return a.createElement(v.A,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:a.createElement("b",null,a.createElement("time",{dateTime:new Date(1e3*t).toISOString()},n))}}," on {date}")}function O(e){var t=e.lastUpdatedBy;return a.createElement(v.A,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:a.createElement("b",null,t)}}," by {user}")}function H(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt,r=e.lastUpdatedBy;return a.createElement("span",{className:A.G.common.lastUpdated},a.createElement(v.A,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?a.createElement(w,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:r?a.createElement(O,{lastUpdatedBy:r}):""}},"Last updated{atDate}{byUser}"),!1)}var M=n(32345);const U={iconEdit:"iconEdit_wOc2"};var B=["className"];function I(e){var t=e.className,n=(0,M.A)(e,B);return a.createElement("svg",(0,u.A)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,d.A)(U.iconEdit,t),"aria-hidden":"true"},n),a.createElement("g",null,a.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))}function S(e){var t=e.editUrl;return a.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener",className:A.G.common.editThisPage},a.createElement(I,null),a.createElement(v.A,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}const P={tag:"tag_Rlpt",tagRegular:"tagRegular_AwM7",tagWithCount:"tagWithCount_fDc3"};function D(e){var t=e.permalink,n=e.label,r=e.count;return a.createElement(p.A,{href:t,className:(0,d.A)(P.tag,r?P.tagWithCount:P.tagRegular)},n,r&&a.createElement("span",null,r))}const z={tags:"tags_dbEo",tag:"tag_CdAb"};function R(e){var t=e.tags;return a.createElement(a.Fragment,null,a.createElement("b",null,a.createElement(v.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),a.createElement("ul",{className:(0,d.A)(z.tags,"padding--none","margin-left--sm")},t.map((function(e){var t=e.label,n=e.permalink;return a.createElement("li",{key:n,className:z.tag},a.createElement(D,{label:t,permalink:n}))}))))}const V={lastUpdated:"lastUpdated_Kmtu"};function j(e){return a.createElement("div",{className:(0,d.A)(A.G.docs.docFooterTagsRow,"row margin-bottom--sm")},a.createElement("div",{className:"col"},a.createElement(R,e)))}function G(e){var t=e.editUrl,n=e.lastUpdatedAt,r=e.lastUpdatedBy,l=e.formattedLastUpdatedAt;return a.createElement("div",{className:(0,d.A)(A.G.docs.docFooterEditMetaRow,"row")},a.createElement("div",{className:"col"},t&&a.createElement(S,{editUrl:t})),a.createElement("div",{className:(0,d.A)("col",V.lastUpdated)},(n||r)&&a.createElement(H,{lastUpdatedAt:n,formattedLastUpdatedAt:l,lastUpdatedBy:r})))}function W(){var e=c().metadata,t=e.editUrl,n=e.lastUpdatedAt,r=e.formattedLastUpdatedAt,l=e.lastUpdatedBy,i=e.tags,o=i.length>0,s=!!(t||n||l);return o||s?a.createElement("footer",{className:(0,d.A)(A.G.docs.docFooter,"docusaurus-mt-lg")},o&&a.createElement(j,{tags:i}),s&&a.createElement(G,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:l,formattedLastUpdatedAt:r})):null}var F=n(75194),q=n(83322),X=["parentIndex"];function Z(e){var t=e.map((function(e){return Object.assign({},e,{parentIndex:-1,children:[]})})),n=Array(7).fill(-1);t.forEach((function(e,t){var a=n.slice(2,e.level);e.parentIndex=Math.max.apply(Math,a),n[e.level]=t}));var a=[];return t.forEach((function(e){var n=e.parentIndex,r=(0,M.A)(e,X);n>=0?t[n].children.push(r):a.push(r)})),a}function K(e){var t=e.toc,n=e.minHeadingLevel,a=e.maxHeadingLevel;return t.flatMap((function(e){var t=K({toc:e.children,minHeadingLevel:n,maxHeadingLevel:a});return function(e){return e.level>=n&&e.level<=a}(e)?[Object.assign({},e,{children:t})]:t}))}function Y(e){var t=e.getBoundingClientRect();return t.top===t.bottom?Y(e.parentNode):t}function Q(e,t){var n,a,r=t.anchorTopOffset,l=e.find((function(e){return Y(e).top>=r}));return l?function(e){return e.top>0&&e.bottom1&&e.preventDefault()},onClick:function(e){e.stopPropagation();var t=e.target;xe(t)&&ke(t,i.current)&&(e.preventDefault(),c?(s(!1),p(!0)):s(!0))}}),f,a.createElement(F.N,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:function(e){s(e),p(!e)}},a.createElement("div",{className:Te.collapsibleContent},n)))}const Oe={details:"details_uAm8"};var He="alert alert--info";function Me(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return a.createElement(we,(0,u.A)({},t,{className:(0,d.A)(He,Oe.details,t.className)}))}function Ue(e){return a.createElement(Ee,e)}const Be={containsTaskList:"containsTaskList_DwMY"};const Ie={img:"img_CpET"};const Se="admonition__AX7",Pe="admonitionHeading_wRvQ",De="admonitionIcon_XDxU",ze="admonitionContent_Z6WN";var Re={note:{infimaClassName:"secondary",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 14 16"},a.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:a.createElement(v.A,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:a.createElement(v.A,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:a.createElement(v.A,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 14 16"},a.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:a.createElement(v.A,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 16 16"},a.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:a.createElement(v.A,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},Ve={secondary:"note",important:"info",success:"tip",warning:"danger"};function je(e){var t,n=function(e){var t=a.Children.toArray(e),n=t.find((function(e){var t;return a.isValidElement(e)&&"mdxAdmonitionTitle"===(null==(t=e.props)?void 0:t.mdxType)})),r=a.createElement(a.Fragment,null,t.filter((function(e){return e!==n})));return{mdxAdmonitionTitle:n,rest:r}}(e.children),r=n.mdxAdmonitionTitle,l=n.rest;return Object.assign({},e,{title:null!=(t=e.title)?t:r,children:l})}const Ge={head:function(e){var t=a.Children.map(e.children,(function(e){return a.isValidElement(e)?function(e){var t;if(null!=(t=e.props)&&t.mdxType&&e.props.originalType){var n=e.props,r=(n.mdxType,n.originalType,(0,M.A)(n,ye));return a.createElement(e.props.originalType,r)}return e}(e):e}));return a.createElement(Ne.A,e,t)},code:function(e){var t=["a","abbr","b","br","button","cite","code","del","dfn","em","i","img","input","ins","kbd","label","object","output","q","ruby","s","small","span","strong","sub","sup","time","u","var","wbr"];return a.Children.toArray(e.children).every((function(e){var n;return"string"==typeof e&&!e.includes("\n")||(0,a.isValidElement)(e)&&t.includes(null==(n=e.props)?void 0:n.mdxType)}))?a.createElement("code",e):a.createElement(Ce.A,e)},a:function(e){return a.createElement(p.A,e)},pre:function(e){var t;return a.createElement(Ce.A,(0,a.isValidElement)(e.children)&&"code"===(null==(t=e.children.props)?void 0:t.originalType)?e.children.props:Object.assign({},e))},details:function(e){var t=a.Children.toArray(e.children),n=t.find((function(e){var t;return a.isValidElement(e)&&"summary"===(null==(t=e.props)?void 0:t.mdxType)})),r=a.createElement(a.Fragment,null,t.filter((function(e){return e!==n})));return a.createElement(Me,(0,u.A)({},e,{summary:n}),r)},ul:function(e){return a.createElement("ul",(0,u.A)({},e,{className:(t=e.className,(0,d.A)(t,(null==t?void 0:t.includes("contains-task-list"))&&Be.containsTaskList))}));var t},img:function(e){return a.createElement("img",(0,u.A)({loading:"lazy"},e,{className:(t=e.className,(0,d.A)(t,Ie.img))}));var t},h1:function(e){return a.createElement(Ue,(0,u.A)({as:"h1"},e))},h2:function(e){return a.createElement(Ue,(0,u.A)({as:"h2"},e))},h3:function(e){return a.createElement(Ue,(0,u.A)({as:"h3"},e))},h4:function(e){return a.createElement(Ue,(0,u.A)({as:"h4"},e))},h5:function(e){return a.createElement(Ue,(0,u.A)({as:"h5"},e))},h6:function(e){return a.createElement(Ue,(0,u.A)({as:"h6"},e))},admonition:function(e){var t=je(e),n=t.children,r=t.type,l=t.title,i=t.icon,o=function(e){var t,n=null!=(t=Ve[e])?t:e,a=Re[n];return a||(console.warn('No admonition config found for admonition type "'+n+'". Using Info as fallback.'),Re.info)}(r),c=null!=l?l:o.label,s=o.iconComponent,m=null!=i?i:a.createElement(s,null);return a.createElement("div",{className:(0,d.A)(A.G.common.admonition,A.G.common.admonitionType(e.type),"alert","alert--"+o.infimaClassName,Se)},a.createElement("div",{className:Pe},a.createElement("span",{className:De},m),c),a.createElement("div",{className:ze},n))},mermaid:n(88848).A};function We(e){var t=e.children;return a.createElement(Ae.xA,{components:Ge},t)}function Fe(e){var t,n,r,l,i=e.children,o=(t=c(),n=t.metadata,r=t.frontMatter,l=t.contentTitle,r.hide_title||void 0!==l?null:n.title);return a.createElement("div",{className:(0,d.A)(A.G.docs.docMarkdown,"markdown")},o&&a.createElement("header",null,a.createElement(Ee,{as:"h1"},o)),a.createElement(We,null,i))}var qe=n(25137),Xe=n(63557),Ze=n(19131);function Ke(e){return a.createElement("svg",(0,u.A)({viewBox:"0 0 24 24"},e),a.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}const Ye={breadcrumbHomeIcon:"breadcrumbHomeIcon_PRsb"};function Qe(){var e=(0,Ze.A)("/");return a.createElement("li",{className:"breadcrumbs__item"},a.createElement(p.A,{"aria-label":(0,v.T)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e},a.createElement(Ke,{className:Ye.breadcrumbHomeIcon})))}const Je={breadcrumbsContainer:"breadcrumbsContainer_GNNc"};function $e(e){var t=e.children,n=e.href,r="breadcrumbs__link";return e.isLast?a.createElement("span",{className:r,itemProp:"name"},t):n?a.createElement(p.A,{className:r,href:n,itemProp:"item"},a.createElement("span",{itemProp:"name"},t)):a.createElement("span",{className:r},t)}function et(e){var t=e.children,n=e.active,r=e.index,l=e.addMicrodata;return a.createElement("li",(0,u.A)({},l&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},{className:(0,d.A)("breadcrumbs__item",{"breadcrumbs__item--active":n})}),t,a.createElement("meta",{itemProp:"position",content:String(r+1)}))}function tt(){var e=(0,qe.OF)(),t=(0,Xe.Dt)();return e?a.createElement("nav",{className:(0,d.A)(A.G.docs.docBreadcrumbs,Je.breadcrumbsContainer),"aria-label":(0,v.T)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},a.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},t&&a.createElement(Qe,null),e.map((function(t,n){var r=n===e.length-1;return a.createElement(et,{key:n,active:r,index:n,addMicrodata:!!t.href},a.createElement($e,{href:t.href,isLast:r},t.label))})))):null}const nt={docItemContainer:"docItemContainer_UOBx",docItemCol:"docItemCol_VUf3"};function at(e){var t,n,r,l,i,o,s=e.children,u=(t=c(),n=t.frontMatter,r=t.toc,l=(0,m.l)(),i=n.hide_table_of_contents,o=!i&&r.length>0,{hidden:i,mobile:o?a.createElement(de,null):void 0,desktop:!o||"desktop"!==l&&"ssr"!==l?void 0:a.createElement(he,null)});return a.createElement("div",{className:"row"},a.createElement("div",{className:(0,d.A)("col",!u.hidden&&nt.docItemCol)},a.createElement(x,null),a.createElement("div",{className:nt.docItemContainer},a.createElement("article",null,a.createElement(tt,null),a.createElement(k,null),u.mobile,a.createElement(Fe,null,s),a.createElement(W,null)),a.createElement(b,null))),u.desktop&&a.createElement("div",{className:"col col--3"},u.desktop))}function rt(e){var t="docs-doc-id-"+e.content.metadata.unversionedId,n=e.content;return a.createElement(o,{content:e.content},a.createElement(r.e3,{className:t},a.createElement(s,null),a.createElement(at,null,a.createElement(n,null))))}},46896:(e,t,n)=>{n.d(t,{n:()=>i,r:()=>o});var a=n(67308),r=n(93702),l=a.createContext(null);function i(e){var t=e.children,n=e.version;return a.createElement(l.Provider,{value:n},t)}function o(){var e=(0,a.useContext)(l);if(null===e)throw new r.dV("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/17896441.cfaeae12.js b/assets/js/17896441.cfaeae12.js deleted file mode 100644 index 1953d48d26..0000000000 --- a/assets/js/17896441.cfaeae12.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7918],{57522:(e,t,n)=>{n.d(t,{Zo:()=>d,kt:()=>p});var a=n(29901);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var c=a.createContext({}),s=function(e){var t=a.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=s(e.components);return a.createElement(c.Provider,{value:t},e.children)},m="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},v=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,c=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),m=s(n),v=r,p=m["".concat(c,".").concat(v)]||m[v]||u[v]||l;return n?a.createElement(p,i(i({ref:t},d),{},{components:n})):a.createElement(p,i({ref:t},d))}));function p(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=v;var o={};for(var c in t)hasOwnProperty.call(t,c)&&(o[c]=t[c]);o.originalType=e,o[m]="string"==typeof e?e:r,i[1]=o;for(var s=2;s{n.r(t),n.d(t,{default:()=>rt});var a=n(29901),r=n(15857),l=n(109),i=a.createContext(null);function o(e){var t=e.children,n=function(e){return(0,a.useMemo)((function(){return{metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc}}),[e])}(e.content);return a.createElement(i.Provider,{value:n},t)}function c(){var e=(0,a.useContext)(i);if(null===e)throw new l.i6("DocProvider");return e}function s(){var e,t=c(),n=t.metadata,l=t.frontMatter,i=t.assets;return a.createElement(r.d,{title:n.title,description:n.description,keywords:l.keywords,image:null!=(e=i.image)?e:l.image})}var d=n(14517),m=n(24737),u=n(73268),v=n(16305),p=n(40849);function f(e){var t=e.permalink,n=e.title,r=e.subLabel,l=e.isNext;return a.createElement(p.Z,{className:(0,d.Z)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t},r&&a.createElement("div",{className:"pagination-nav__sublabel"},r),a.createElement("div",{className:"pagination-nav__label"},n))}function h(e){var t=e.previous,n=e.next;return a.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,v.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages navigation",description:"The ARIA label for the docs pagination"})},t&&a.createElement(f,(0,u.Z)({},t,{subLabel:a.createElement(v.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),n&&a.createElement(f,(0,u.Z)({},n,{subLabel:a.createElement(v.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}function b(){var e=c().metadata;return a.createElement(h,{previous:e.previous,next:e.next})}var g=n(89134),E=n(61416),N=n(69057),y=n(76275),C=n(53760);var L={unreleased:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(v.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(v.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function Z(e){var t=L[e.versionMetadata.banner];return a.createElement(t,e)}function k(e){var t=e.versionLabel,n=e.to,r=e.onClick;return a.createElement(v.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:a.createElement("b",null,a.createElement(p.Z,{to:n,onClick:r},a.createElement(v.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function _(e){var t,n=e.className,r=e.versionMetadata,l=(0,g.Z)().siteConfig.title,i=(0,E.gA)({failfast:!0}).pluginId,o=(0,y.J)(i).savePreferredVersionName,c=(0,E.Jo)(i),s=c.latestDocSuggestion,m=c.latestVersionSuggestion,u=null!=s?s:(t=m).docs.find((function(e){return e.id===t.mainDocId}));return a.createElement("div",{className:(0,d.Z)(n,N.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},a.createElement("div",null,a.createElement(Z,{siteTitle:l,versionMetadata:r})),a.createElement("div",{className:"margin-top--md"},a.createElement(k,{versionLabel:m.label,to:u.path,onClick:function(){return o(m.name)}})))}function T(e){var t=e.className,n=(0,C.E)();return n.banner?a.createElement(_,{className:t,versionMetadata:n}):null}function x(e){var t=e.className,n=(0,C.E)();return n.badge?a.createElement("span",{className:(0,d.Z)(t,N.k.docs.docVersionBadge,"badge badge--secondary")},a.createElement(v.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label}},"Version: {versionLabel}")):null}function w(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt;return a.createElement(v.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:a.createElement("b",null,a.createElement("time",{dateTime:new Date(1e3*t).toISOString()},n))}}," on {date}")}function O(e){var t=e.lastUpdatedBy;return a.createElement(v.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:a.createElement("b",null,t)}}," by {user}")}function H(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt,r=e.lastUpdatedBy;return a.createElement("span",{className:N.k.common.lastUpdated},a.createElement(v.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?a.createElement(w,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:r?a.createElement(O,{lastUpdatedBy:r}):""}},"Last updated{atDate}{byUser}"),!1)}var A=n(68039);const M={iconEdit:"iconEdit_wOc2"};var U=["className"];function B(e){var t=e.className,n=(0,A.Z)(e,U);return a.createElement("svg",(0,u.Z)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,d.Z)(M.iconEdit,t),"aria-hidden":"true"},n),a.createElement("g",null,a.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))}function I(e){var t=e.editUrl;return a.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener",className:N.k.common.editThisPage},a.createElement(B,null),a.createElement(v.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}const S={tag:"tag_Rlpt",tagRegular:"tagRegular_AwM7",tagWithCount:"tagWithCount_fDc3"};function P(e){var t=e.permalink,n=e.label,r=e.count;return a.createElement(p.Z,{href:t,className:(0,d.Z)(S.tag,r?S.tagWithCount:S.tagRegular)},n,r&&a.createElement("span",null,r))}const z={tags:"tags_dbEo",tag:"tag_CdAb"};function D(e){var t=e.tags;return a.createElement(a.Fragment,null,a.createElement("b",null,a.createElement(v.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),a.createElement("ul",{className:(0,d.Z)(z.tags,"padding--none","margin-left--sm")},t.map((function(e){var t=e.label,n=e.permalink;return a.createElement("li",{key:n,className:z.tag},a.createElement(P,{label:t,permalink:n}))}))))}const R={lastUpdated:"lastUpdated_Kmtu"};function j(e){return a.createElement("div",{className:(0,d.Z)(N.k.docs.docFooterTagsRow,"row margin-bottom--sm")},a.createElement("div",{className:"col"},a.createElement(D,e)))}function V(e){var t=e.editUrl,n=e.lastUpdatedAt,r=e.lastUpdatedBy,l=e.formattedLastUpdatedAt;return a.createElement("div",{className:(0,d.Z)(N.k.docs.docFooterEditMetaRow,"row")},a.createElement("div",{className:"col"},t&&a.createElement(I,{editUrl:t})),a.createElement("div",{className:(0,d.Z)("col",R.lastUpdated)},(n||r)&&a.createElement(H,{lastUpdatedAt:n,formattedLastUpdatedAt:l,lastUpdatedBy:r})))}function W(){var e=c().metadata,t=e.editUrl,n=e.lastUpdatedAt,r=e.formattedLastUpdatedAt,l=e.lastUpdatedBy,i=e.tags,o=i.length>0,s=!!(t||n||l);return o||s?a.createElement("footer",{className:(0,d.Z)(N.k.docs.docFooter,"docusaurus-mt-lg")},o&&a.createElement(j,{tags:i}),s&&a.createElement(V,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:l,formattedLastUpdatedAt:r})):null}var F=n(37150),q=n(66228),X=["parentIndex"];function G(e){var t=e.map((function(e){return Object.assign({},e,{parentIndex:-1,children:[]})})),n=Array(7).fill(-1);t.forEach((function(e,t){var a=n.slice(2,e.level);e.parentIndex=Math.max.apply(Math,a),n[e.level]=t}));var a=[];return t.forEach((function(e){var n=e.parentIndex,r=(0,A.Z)(e,X);n>=0?t[n].children.push(r):a.push(r)})),a}function J(e){var t=e.toc,n=e.minHeadingLevel,a=e.maxHeadingLevel;return t.flatMap((function(e){var t=J({toc:e.children,minHeadingLevel:n,maxHeadingLevel:a});return function(e){return e.level>=n&&e.level<=a}(e)?[Object.assign({},e,{children:t})]:t}))}function K(e){var t=e.getBoundingClientRect();return t.top===t.bottom?K(e.parentNode):t}function Y(e,t){var n,a,r=t.anchorTopOffset,l=e.find((function(e){return K(e).top>=r}));return l?function(e){return e.top>0&&e.bottom1&&e.preventDefault()},onClick:function(e){e.stopPropagation();var t=e.target;Te(t)&&xe(t,i.current)&&(e.preventDefault(),c?(s(!1),p(!0)):s(!0))}}),f,a.createElement(F.z,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:function(e){s(e),p(!e)}},a.createElement("div",{className:ke.collapsibleContent},n)))}const Oe={details:"details_uAm8"};var He="alert alert--info";function Ae(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return a.createElement(we,(0,u.Z)({},t,{className:(0,d.Z)(He,Oe.details,t.className)}))}function Me(e){return a.createElement(Ee,e)}const Ue={containsTaskList:"containsTaskList_DwMY"};const Be={img:"img_CpET"};const Ie="admonition__AX7",Se="admonitionHeading_wRvQ",Pe="admonitionIcon_XDxU",ze="admonitionContent_Z6WN";var De={note:{infimaClassName:"secondary",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 14 16"},a.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:a.createElement(v.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:a.createElement(v.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:a.createElement(v.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 14 16"},a.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:a.createElement(v.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 16 16"},a.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:a.createElement(v.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},Re={secondary:"note",important:"info",success:"tip",warning:"danger"};function je(e){var t,n=function(e){var t=a.Children.toArray(e),n=t.find((function(e){var t;return a.isValidElement(e)&&"mdxAdmonitionTitle"===(null==(t=e.props)?void 0:t.mdxType)})),r=a.createElement(a.Fragment,null,t.filter((function(e){return e!==n})));return{mdxAdmonitionTitle:n,rest:r}}(e.children),r=n.mdxAdmonitionTitle,l=n.rest;return Object.assign({},e,{title:null!=(t=e.title)?t:r,children:l})}const Ve={head:function(e){var t=a.Children.map(e.children,(function(e){return a.isValidElement(e)?function(e){var t;if(null!=(t=e.props)&&t.mdxType&&e.props.originalType){var n=e.props,r=(n.mdxType,n.originalType,(0,A.Z)(n,Ce));return a.createElement(e.props.originalType,r)}return e}(e):e}));return a.createElement(ye.Z,e,t)},code:function(e){var t=["a","abbr","b","br","button","cite","code","del","dfn","em","i","img","input","ins","kbd","label","object","output","q","ruby","s","small","span","strong","sub","sup","time","u","var","wbr"];return a.Children.toArray(e.children).every((function(e){var n;return"string"==typeof e&&!e.includes("\n")||(0,a.isValidElement)(e)&&t.includes(null==(n=e.props)?void 0:n.mdxType)}))?a.createElement("code",e):a.createElement(Le.Z,e)},a:function(e){return a.createElement(p.Z,e)},pre:function(e){var t;return a.createElement(Le.Z,(0,a.isValidElement)(e.children)&&"code"===(null==(t=e.children.props)?void 0:t.originalType)?e.children.props:Object.assign({},e))},details:function(e){var t=a.Children.toArray(e.children),n=t.find((function(e){var t;return a.isValidElement(e)&&"summary"===(null==(t=e.props)?void 0:t.mdxType)})),r=a.createElement(a.Fragment,null,t.filter((function(e){return e!==n})));return a.createElement(Ae,(0,u.Z)({},e,{summary:n}),r)},ul:function(e){return a.createElement("ul",(0,u.Z)({},e,{className:(t=e.className,(0,d.Z)(t,(null==t?void 0:t.includes("contains-task-list"))&&Ue.containsTaskList))}));var t},img:function(e){return a.createElement("img",(0,u.Z)({loading:"lazy"},e,{className:(t=e.className,(0,d.Z)(t,Be.img))}));var t},h1:function(e){return a.createElement(Me,(0,u.Z)({as:"h1"},e))},h2:function(e){return a.createElement(Me,(0,u.Z)({as:"h2"},e))},h3:function(e){return a.createElement(Me,(0,u.Z)({as:"h3"},e))},h4:function(e){return a.createElement(Me,(0,u.Z)({as:"h4"},e))},h5:function(e){return a.createElement(Me,(0,u.Z)({as:"h5"},e))},h6:function(e){return a.createElement(Me,(0,u.Z)({as:"h6"},e))},admonition:function(e){var t=je(e),n=t.children,r=t.type,l=t.title,i=t.icon,o=function(e){var t,n=null!=(t=Re[e])?t:e,a=De[n];return a||(console.warn('No admonition config found for admonition type "'+n+'". Using Info as fallback.'),De.info)}(r),c=null!=l?l:o.label,s=o.iconComponent,m=null!=i?i:a.createElement(s,null);return a.createElement("div",{className:(0,d.Z)(N.k.common.admonition,N.k.common.admonitionType(e.type),"alert","alert--"+o.infimaClassName,Ie)},a.createElement("div",{className:Se},a.createElement("span",{className:Pe},m),c),a.createElement("div",{className:ze},n))},mermaid:n(28378).Z};function We(e){var t=e.children;return a.createElement(Ne.Zo,{components:Ve},t)}function Fe(e){var t,n,r,l,i=e.children,o=(t=c(),n=t.metadata,r=t.frontMatter,l=t.contentTitle,r.hide_title||void 0!==l?null:n.title);return a.createElement("div",{className:(0,d.Z)(N.k.docs.docMarkdown,"markdown")},o&&a.createElement("header",null,a.createElement(Ee,{as:"h1"},o)),a.createElement(We,null,i))}var qe=n(94972),Xe=n(5452),Ge=n(48770);function Je(e){return a.createElement("svg",(0,u.Z)({viewBox:"0 0 24 24"},e),a.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}const Ke={breadcrumbHomeIcon:"breadcrumbHomeIcon_PRsb"};function Ye(){var e=(0,Ge.Z)("/");return a.createElement("li",{className:"breadcrumbs__item"},a.createElement(p.Z,{"aria-label":(0,v.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e},a.createElement(Je,{className:Ke.breadcrumbHomeIcon})))}const Qe={breadcrumbsContainer:"breadcrumbsContainer_GNNc"};function $e(e){var t=e.children,n=e.href,r="breadcrumbs__link";return e.isLast?a.createElement("span",{className:r,itemProp:"name"},t):n?a.createElement(p.Z,{className:r,href:n,itemProp:"item"},a.createElement("span",{itemProp:"name"},t)):a.createElement("span",{className:r},t)}function et(e){var t=e.children,n=e.active,r=e.index,l=e.addMicrodata;return a.createElement("li",(0,u.Z)({},l&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},{className:(0,d.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n})}),t,a.createElement("meta",{itemProp:"position",content:String(r+1)}))}function tt(){var e=(0,qe.s1)(),t=(0,Xe.Ns)();return e?a.createElement("nav",{className:(0,d.Z)(N.k.docs.docBreadcrumbs,Qe.breadcrumbsContainer),"aria-label":(0,v.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},a.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},t&&a.createElement(Ye,null),e.map((function(t,n){var r=n===e.length-1;return a.createElement(et,{key:n,active:r,index:n,addMicrodata:!!t.href},a.createElement($e,{href:t.href,isLast:r},t.label))})))):null}const nt={docItemContainer:"docItemContainer_UOBx",docItemCol:"docItemCol_VUf3"};function at(e){var t,n,r,l,i,o,s=e.children,u=(t=c(),n=t.frontMatter,r=t.toc,l=(0,m.i)(),i=n.hide_table_of_contents,o=!i&&r.length>0,{hidden:i,mobile:o?a.createElement(de,null):void 0,desktop:!o||"desktop"!==l&&"ssr"!==l?void 0:a.createElement(he,null)});return a.createElement("div",{className:"row"},a.createElement("div",{className:(0,d.Z)("col",!u.hidden&&nt.docItemCol)},a.createElement(T,null),a.createElement("div",{className:nt.docItemContainer},a.createElement("article",null,a.createElement(tt,null),a.createElement(x,null),u.mobile,a.createElement(Fe,null,s),a.createElement(W,null)),a.createElement(b,null))),u.desktop&&a.createElement("div",{className:"col col--3"},u.desktop))}function rt(e){var t="docs-doc-id-"+e.content.metadata.unversionedId,n=e.content;return a.createElement(o,{content:e.content},a.createElement(r.FG,{className:t},a.createElement(s,null),a.createElement(at,null,a.createElement(n,null))))}},53760:(e,t,n)=>{n.d(t,{E:()=>o,q:()=>i});var a=n(29901),r=n(109),l=a.createContext(null);function i(e){var t=e.children,n=e.version;return a.createElement(l.Provider,{value:n},t)}function o(){var e=(0,a.useContext)(l);if(null===e)throw new r.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/17a90253.131d8a79.js b/assets/js/17a90253.131d8a79.js new file mode 100644 index 0000000000..670ba998b3 --- /dev/null +++ b/assets/js/17a90253.131d8a79.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2831],{62757:(e,n,r)=>{r.d(n,{xA:()=>c,yg:()=>f});var t=r(67308);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function a(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=t.createContext({}),p=function(e){var n=t.useContext(u),r=n;return e&&(r="function"==typeof e?e(n):a(a({},n),e)),r},c=function(e){var n=p(e.components);return t.createElement(u.Provider,{value:n},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},g=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),y=p(r),g=o,f=y["".concat(u,".").concat(g)]||y[g]||s[g]||l;return r?t.createElement(f,a(a({ref:n},c),{},{components:r})):t.createElement(f,a({ref:n},c))}));function f(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var l=r.length,a=new Array(l);a[0]=g;var i={};for(var u in n)hasOwnProperty.call(n,u)&&(i[u]=n[u]);i.originalType=e,i[y]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>f,frontMatter:()=>i,metadata:()=>p,toc:()=>y});var t=r(37782),o=r(32345),l=(r(67308),r(62757)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.26-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.26-alpha/api/union",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},g="wrapper";function f(e){var n=e.components,r=(0,o.A)(e,a);return(0,l.yg)(g,(0,t.A)({},s,r,{components:n,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"union"},"union"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/union"},"|"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"union(L,R) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/17a90253.d82f8cb2.js b/assets/js/17a90253.d82f8cb2.js deleted file mode 100644 index ca0bcedd1c..0000000000 --- a/assets/js/17a90253.d82f8cb2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4514],{57522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(29901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,a(a({ref:t},c),{},{components:n})):r.createElement(d,a({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,a=new Array(l);a[0]=m;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i[s]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),o=n(68039),l=(n(29901),n(57522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.26-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.26-alpha/api/union",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/17c9add8.96310c87.js b/assets/js/17c9add8.96310c87.js deleted file mode 100644 index 68c80756bc..0000000000 --- a/assets/js/17c9add8.96310c87.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2134],{57522:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=a,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||o;return t?n.createElement(d,l(l({ref:r},u),{},{components:t})):n.createElement(d,l({ref:r},u))}));function d(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=m;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[s]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>s});var n=t(73268),a=t(68039),o=(t(29901),t(57522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.23-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/1.0.23-alpha/api/narrow",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],f={toc:s},m="wrapper";function d(e){var r=e.components,t=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"narrow"},"narrow"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/narrow"},"=>"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"example"},"example"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/17c9add8.b825c379.js b/assets/js/17c9add8.b825c379.js new file mode 100644 index 0000000000..a4f113689e --- /dev/null +++ b/assets/js/17c9add8.b825c379.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[324],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),f=a,m=y["".concat(i,".").concat(f)]||y[f]||s[f]||o;return t?n.createElement(m,l(l({ref:r},u),{},{components:t})):n.createElement(m,l({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=f;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.23-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/1.0.23-alpha/api/narrow",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],s={toc:y},f="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,l);return(0,o.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"narrow"},"narrow"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/narrow"},"=>"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"example"},"example"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("pre",{parentName:"li"},(0,o.yg)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1915fe21.856ebca4.js b/assets/js/1915fe21.d09e8ca1.js similarity index 83% rename from assets/js/1915fe21.856ebca4.js rename to assets/js/1915fe21.d09e8ca1.js index ae04a5202b..4263831792 100644 --- a/assets/js/1915fe21.856ebca4.js +++ b/assets/js/1915fe21.d09e8ca1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7019],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>y});var r=t(29901);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),d=i,y=s["".concat(c,".").concat(d)]||s[d]||u[d]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=d;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(73268),i=t(68039),o=(t(29901),t(57522)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/docs/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/next/api/inferdefinition",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],u={toc:s},d="wrapper";function y(e){var n=e.components,t=(0,i.Z)(e,a);return(0,o.kt)(d,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7331],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>y});var r=t(67308);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),d=i,y=s["".concat(c,".").concat(d)]||s[d]||u[d]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=d;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(37782),i=t(32345),o=(t(67308),t(62757)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/docs/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/next/api/inferdefinition",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],u={toc:s},d="wrapper";function y(e){var n=e.components,t=(0,i.A)(e,a);return(0,o.yg)(d,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/193ee87b.22f38c82.js b/assets/js/193ee87b.22f38c82.js new file mode 100644 index 0000000000..c3f9113292 --- /dev/null +++ b/assets/js/193ee87b.22f38c82.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4369],{62757:(e,n,r)=>{r.d(n,{xA:()=>c,yg:()=>f});var t=r(67308);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function a(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=t.createContext({}),p=function(e){var n=t.useContext(u),r=n;return e&&(r="function"==typeof e?e(n):a(a({},n),e)),r},c=function(e){var n=p(e.components);return t.createElement(u.Provider,{value:n},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},g=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),y=p(r),g=o,f=y["".concat(u,".").concat(g)]||y[g]||s[g]||l;return r?t.createElement(f,a(a({ref:n},c),{},{components:r})):t.createElement(f,a({ref:n},c))}));function f(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var l=r.length,a=new Array(l);a[0]=g;var i={};for(var u in n)hasOwnProperty.call(n,u)&&(i[u]=n[u]);i.originalType=e,i[y]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>f,frontMatter:()=>i,metadata:()=>p,toc:()=>y});var t=r(37782),o=r(32345),l=(r(67308),r(62757)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.22-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.22-alpha/api/union",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},g="wrapper";function f(e){var n=e.components,r=(0,o.A)(e,a);return(0,l.yg)(g,(0,t.A)({},s,r,{components:n,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"union"},"union"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.22-alpha/api/union"},"|"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"union(L,R) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/193ee87b.e4f998bc.js b/assets/js/193ee87b.e4f998bc.js deleted file mode 100644 index a7e81e2e57..0000000000 --- a/assets/js/193ee87b.e4f998bc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7198],{57522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(29901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,a(a({ref:t},c),{},{components:n})):r.createElement(d,a({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,a=new Array(l);a[0]=m;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i[s]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),o=n(68039),l=(n(29901),n(57522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.22-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.22-alpha/api/union",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.22-alpha/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1aa920a4.42442f5e.js b/assets/js/1aa920a4.398b4eaf.js similarity index 98% rename from assets/js/1aa920a4.42442f5e.js rename to assets/js/1aa920a4.398b4eaf.js index 4469f3f68a..913041c773 100644 --- a/assets/js/1aa920a4.42442f5e.js +++ b/assets/js/1aa920a4.398b4eaf.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8081],{59290:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.29-alpha","label":"1.0.29-alpha","banner":null,"badge":true,"noIndex":false,"className":"docs-version-1.0.29-alpha","isLast":true,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7418],{71067:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.29-alpha","label":"1.0.29-alpha","banner":null,"badge":true,"noIndex":false,"className":"docs-version-1.0.29-alpha","isLast":true,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/1be78505.a83bb609.js b/assets/js/1be78505.a83bb609.js deleted file mode 100644 index 1580f3103a..0000000000 --- a/assets/js/1be78505.a83bb609.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9514,9601],{22482:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ce});var a=n(29901),r=n(14517),o=n(15857),l=n(69057),i=n(34986),c=n(94972),d=n(53760),s=n(38582),m=n(53094),u=n(16305),b=n(56901),p=n(3156);const h={backToTopButton:"backToTopButton_q4Aj",backToTopButtonShow:"backToTopButtonShow_zi2D"};function v(){var e=function(e){var t=e.threshold,n=(0,a.useState)(!1),r=n[0],o=n[1],l=(0,a.useRef)(!1),i=(0,b.Ct)(),c=i.startScroll,d=i.cancelScroll;return(0,b.RF)((function(e,n){var a=e.scrollY,r=null==n?void 0:n.scrollY;r&&(l.current?l.current=!1:a>=r?(d(),o(!1)):a{n.r(t),n.d(t,{default:()=>i});var a=n(29901),r=n(16305),o=n(15857),l=n(53094);function i(){return a.createElement(a.Fragment,null,a.createElement(o.d,{title:(0,r.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(l.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(r.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(r.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(r.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}},53760:(e,t,n)=>{n.d(t,{E:()=>i,q:()=>l});var a=n(29901),r=n(109),o=a.createContext(null);function l(e){var t=e.children,n=e.version;return a.createElement(o.Provider,{value:n},t)}function i(){var e=(0,a.useContext)(o);if(null===e)throw new r.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/1be78505.be72915c.js b/assets/js/1be78505.be72915c.js new file mode 100644 index 0000000000..d78438b70f --- /dev/null +++ b/assets/js/1be78505.be72915c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8714,6753],{50900:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ke});var a=n(67308),r=n(35284),o=n(53741),l=n(91443),i=n(39955),c=n(25137),d=n(46896),s=n(17120),m=n(70114),u=n(26145),b=n(54796),p=n(13042);const h={backToTopButton:"backToTopButton_q4Aj",backToTopButtonShow:"backToTopButtonShow_zi2D"};function v(){var e=function(e){var t=e.threshold,n=(0,a.useState)(!1),r=n[0],o=n[1],l=(0,a.useRef)(!1),i=(0,b.gk)(),c=i.startScroll,d=i.cancelScroll;return(0,b.Mq)((function(e,n){var a=e.scrollY,r=null==n?void 0:n.scrollY;r&&(l.current?l.current=!1:a>=r?(d(),o(!1)):a{n.r(t),n.d(t,{default:()=>i});var a=n(67308),r=n(26145),o=n(53741),l=n(70114);function i(){return a.createElement(a.Fragment,null,a.createElement(o.be,{title:(0,r.T)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(l.A,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(r.A,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(r.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(r.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}},46896:(e,t,n)=>{n.d(t,{n:()=>l,r:()=>i});var a=n(67308),r=n(93702),o=a.createContext(null);function l(e){var t=e.children,n=e.version;return a.createElement(o.Provider,{value:n},t)}function i(){var e=(0,a.useContext)(o);if(null===e)throw new r.dV("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/1cd1dcad.842bc21a.js b/assets/js/1cd1dcad.842bc21a.js deleted file mode 100644 index 5cd8bee607..0000000000 --- a/assets/js/1cd1dcad.842bc21a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6694],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(73268),a=n(68039),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.23-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.23-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.23-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1cd1dcad.f60aa78f.js b/assets/js/1cd1dcad.f60aa78f.js new file mode 100644 index 0000000000..0ec790d7e1 --- /dev/null +++ b/assets/js/1cd1dcad.f60aa78f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4678],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),g=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},y=function(e){var t=g(e.components);return r.createElement(i.Provider,{value:t},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=g(n),u=a,m=c["".concat(i,".").concat(u)]||c[u]||d[u]||l;return n?r.createElement(m,o(o({ref:t},y),{},{components:n})):r.createElement(m,o({ref:t},y))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,o=new Array(l);o[0]=u;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>g,toc:()=>c});var r=n(37782),a=n(32345),l=(n(67308),n(62757)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",g={unversionedId:"api/jsobjectsscope",id:"version-1.0.23-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.23-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.23-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"text",id:"text",level:2}],d={toc:c},u="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,o);return(0,l.yg)(u,(0,r.A)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1df93b7f.47ed7461.js b/assets/js/1df93b7f.47ed7461.js deleted file mode 100644 index ec5722ca71..0000000000 --- a/assets/js/1df93b7f.47ed7461.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3237],{18724:(e,t,n)=>{n.d(t,{g:()=>h});var r=n(19982),a=n(60024),i=n(53800),o=n(49361),l=n(29901),c=n(43346);var s=function(e){var t=m[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+t[0]+"\n populateDemo("+t[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},m={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var p={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},d={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{n.r(t),n.d(t,{default:()=>se});var r,a,i,o,l,c,s,m,p,d,u,f=n(89134),h=n(58777),g=n(53094),y=n(29901),b=n(83736),v=n(53800),E=n(85569),k=n(73268),x=n(55850),w=n(68584),Z=n(15826),z=function(e){return y.createElement("video",(0,k.Z)({autoPlay:!0,loop:!0,controls:!0,playsInline:!0,muted:!0,disablePictureInPicture:!0},e))},T=n(14043),C=function(){return(0,T.Z)("(max-width:1250px)")},I=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},'const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n\n// Hover to infer...\ntype User = typeof user.infer\n'),y.createElement("img",{height:"50%",src:"/img/isomorphicHover.png"})),S=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to infer...\n",'const arkUser = type({\n name: /^ark.*$/ as Infer<`ark${string}`>,\n birthday: morph("string", (s) => new Date(s)),\n "powerLevel?": "1<=number<9000"\n})'),y.createElement("img",{height:"60%",src:"/img/arkUser.png"})),H=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to infer...\n",'const zodUser = z.object({\n name: z.custom<`zod${string}`>(\n (val) => typeof val === "string" && /^zod.*$/.test(val)\n ),\n birthday: z.preprocess(\n (arg) => (typeof arg === "string" ? new Date(arg) : undefined),\n z.date()\n ),\n powerLevel: z.number().gte(1).lt(9000).optional()\n})'),y.createElement("img",{height:"80%",src:"/img/zodInfer.png"})),O=y.createElement(y.Fragment,null,S,H),j=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to see internal representation...\n","export const deepLeftOrRight = union(\n {\n auto: {\n discriminated: \"'left'\"\n }\n },\n {\n auto: {\n discriminated: \"'right'\"\n }\n }\n)"),y.createElement("img",{src:"/img/optimizedUnion.png"})),D=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to see internal representation...\n",'export const numericIntersection = type(\n "(1 <= number%2 < 100) & (0 < number%3 <= 99)"\n)',"\n \n\n\n\n\n"),y.createElement("img",{src:"/img/optimizedNumber.png"})),M=[{title:"Isomorphic",description:"Define types using TS syntax. Infer them 1:1. Use them to validate your data at runtime.",image:I},{title:"Concise",description:"Say more with less",image:O},{title:"Optimized",description:"ArkType is not just a validator\u2014 it's a full type system. Operations are deeply computed and optimized by default",image:y.createElement(y.Fragment,null,j,D)},{title:"Type-safe",description:"String definitions are statically parsed with each character you type and give detailed feedback just like in your editor.",image:y.createElement(v.Z,{width:"100%"},y.createElement(z,{src:"/img/typePerf.mp4"}),y.createElement("caption",{style:{fontSize:".8rem"}},"Worried about performance? Don't be. This is how it feels to interact with a scope of 100 cyclic types (you may want to go fullscreen to see the details!)"))}],P=function(){return y.createElement(x.ZP,{sx:{alignContent:"center"},columns:C()?1:2,spacing:3},M.map((function(e,t){return y.createElement(L,(0,k.Z)({key:t},e))})))},L=function(e){var t,n=(0,w.Z)();return y.createElement(v.Z,{spacing:2,maxWidth:"40em"},y.createElement(E.Z,{component:"h3",variant:"h5",fontWeight:"700",width:"100%",textAlign:"center",color:n.palette.info.main},e.title),y.createElement(E.Z,{component:"p",variant:"body1",fontWeight:"300",minHeight:"3rem"},e.description),y.createElement("div",{style:{padding:"6px",borderRadius:"16px"}},null!=(t=e.image)?t:null))},N=n(96172),$=n(36832),A=n(50931),F=n(81453),W=n(35601),U=n(18724),q=n(17188),R=n(39069),V=function(){var e=(0,N.TH)().pathname,t=(0,w.Z)().palette,n="dark"===(0,b.I)().colorMode,r=(0,y.useState)(e.includes("try")),a=r[0],i=r[1],o=n?"#ffffff00":"#000000aa";return y.createElement(y.Fragment,null,y.createElement(v.Z,{alignItems:"start",width:"100%"},y.createElement(F.Z,{variant:"contained",sx:{backgroundColor:o,backdropFilter:"blur(4px)",borderRadius:"2rem",fontSize:"1.5rem",fontFamily:'"Cascadia Code", sans-serif',textTransform:"none",color:t.primary.main,"&:hover":{backgroundColor:o,color:t.secondary.main,backdropFilter:"blur(6px)"},zIndex:1},onClick:function(){return i(!a)},endIcon:y.createElement("div",{style:{display:"flex"}},a?y.createElement($.Z,null):y.createElement(A.Z,null))},a?"$ wq!":"$ code demo.ts",y.createElement(W.E.div,{animate:{opacity:0},transition:{duration:.5,repeatType:"mirror",repeat:1/0}},"_"))),y.createElement(v.Z,{width:"100%"},a?y.createElement(U.g,{embedId:"demo"}):y.createElement(z,{src:"/img/arktype.mp4",style:{width:"100%",marginTop:"-2.8rem"}})),y.createElement("sub",{style:{marginLeft:"2.3px",marginTop:"5px"}},y.createElement("code",null,"typescript@4.9.5")," in VS Code\u2014 no extensions or plugins required (",y.createElement("a",{href:"https://github.com/arktypeio/arktype#how",target:"_blank"},"how?"),")"))},_=n(47699),J=n(1213),G=n(98343),K=n(6089),B=n(84123),Y=function(){var e=(0,K.v)().scrollY,t=(0,B._)(),n={position:"absolute",top:60,width:386};return e.onChange((function(e){t.start(e?{position:"fixed",top:"50%",width:340}:n)})),y.createElement(W.E.div,{style:{right:0},initial:n,animate:t},y.createElement(X,null))},Q=function(){return y.createElement("div",{style:{width:"100%"}},y.createElement(X,null))},X=function(){return y.createElement(_.Z,{style:{height:"8rem",margin:".5rem",padding:".7rem 1rem 0rem",backgroundColor:"#ffffff00",backdropFilter:"blur(1px)",borderRadius:"2rem",zIndex:1,fontFamily:'"Cascadia Code", sans-serif'},elevation:8},y.createElement(G.Z,{className:"installationTabs"},y.createElement(J.Z,{value:"node",default:!0},y.createElement(G.Z,{className:"subTabs"},y.createElement(J.Z,{value:"npm",attributes:{className:"npmTab"}},y.createElement(Z.Z,{language:"bash"},"npm install arktype")),y.createElement(J.Z,{value:"pnpm",attributes:{className:"pnpmTab"}},y.createElement(Z.Z,{language:"bash"},"pnpm add arktype")),y.createElement(J.Z,{value:"yarn",attributes:{className:"yarnTab"}},y.createElement(Z.Z,{language:"bash"},"yarn add arktype")))),y.createElement(J.Z,{value:"bun",label:"bun"},y.createElement(Z.Z,{language:"bash"},"bun install arktype")),y.createElement(J.Z,{value:"deno",label:"deno"},y.createElement(Z.Z,{language:"typescript"},'import { type } from "npm:arktype"'))))},ee=function(){var e=(0,b.I)().colorMode;return y.createElement("main",{style:{display:"flex",justifyContent:"center"}},y.createElement(v.Z,{justifyContent:"center",padding:"1rem 0rem 1rem",spacing:1,width:"100%",maxWidth:"60rem"},y.createElement(V,null),(0,T.Z)("(min-width:1420px)")?y.createElement(Y,null):y.createElement(Q,null),y.createElement(E.Z,{color:"dark"===e?"primary.light":"primary.dark",className:"contents",fontSize:"1.3rem"},y.createElement("p",null,"ArkType is a runtime validation library that can infer"," ",y.createElement("b",null,"TypeScript definitions 1:1")," and reuse them as"," ",y.createElement("b",null,"highly-optimized validators")," for your data."),y.createElement("p",null,"With each character you type, you'll get"," ",y.createElement("b",null,"immediate feedback from your editor")," in the form of either a fully-inferred ",y.createElement("code",null,"Type")," or a specific and helpful ",y.createElement("code",null,"ParseError"),"."),y.createElement("p",null,"This result exactly mirrors what you can expect to happen at runtime down to the punctuation of the error message- ",y.createElement("b",null,"no plugins required"),".")),y.createElement(P,null)))},te=["title","titleId"];function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const ae=function(e){var t=e.title,n=e.titleId,f=re(e,te);return y.createElement("svg",ne({viewBox:"0 0 375 375","aria-labelledby":n},f),t?y.createElement("title",{id:n},t):null,r||(r=y.createElement("path",{fill:"#4b3621",d:"M5.314 281.357h27.799l9.62-38.835a5.288 5.337 0 0 1 5.156-4.077h212.609a5.288 5.337 0 0 1 5.156 4.077l9.461 38.3 37.844-4.775c1.754-.268 3.508.43 4.678 1.824 1.169 1.34 1.542 3.218 1.063 4.935l-10.63 37.548a5.295 5.344 0 0 1-5.103 3.916H5.315c-2.923 0-5.316-2.414-5.316-5.364V286.72c0-2.95 2.391-5.364 5.315-5.364Zm127.566-32.184H52.035l-7.972 32.184h88.817zm31.89 0h-21.26v32.184h21.26zm91.582 0h-80.95v32.184h88.923zM10.63 313.542h288.35l7.283-25.855-34.55 4.344c-.212.054-.425.054-.637.054H10.629v21.457z"})),a||(a=y.createElement("path",{fill:"none",d:"M106.994 267.84a5.281 5.33 0 0 0 4.624 2.789c.904 0 1.754-.215 2.604-.697a5.358 5.358 0 0 0 2.073-7.296c-1.435-2.574-4.624-3.54-7.229-2.092-2.55 1.449-3.507 4.72-2.072 7.296zm-43.212-2.575c0 2.95 2.338 5.364 5.262 5.364h.052c2.924 0 5.316-2.414 5.316-5.364 0-2.95-2.392-5.364-5.316-5.364-2.923 0-5.314 2.413-5.314 5.364zm127.671.805c.425 2.628 2.658 4.56 5.262 4.56.266 0 .531 0 .797-.054 2.87-.43 4.943-3.165 4.465-6.115-.426-2.95-3.083-4.989-6.006-4.506h-.053c-2.87.428-4.89 3.165-4.465 6.114zm21.155-.805c0 2.95 2.391 5.364 5.315 5.364 2.924 0 5.369-2.414 5.369-5.364 0-2.95-2.392-5.364-5.316-5.364h-.053c-2.923 0-5.315 2.413-5.315 5.364zm-127.566 0c0 2.95 2.339 5.364 5.262 5.364h.053c2.923 0 5.316-2.414 5.316-5.364 0-2.95-2.392-5.364-5.316-5.364s-5.315 2.413-5.315 5.364zm152.866 5.203a5.232 5.28 0 0 0 1.276.161 5.284 5.284 0 0 0 5.156-4.077c.744-2.843-.957-5.793-3.827-6.49h-.053c-2.87-.698-5.74 1.018-6.432 3.916a5.39 5.39 0 0 0 3.88 6.49z"})),i||(i=y.createElement("path",{fill:"none",d:"M182.736 249.173h73.616l6.644 26.82h-80.26Zm55.172 21.295a5.232 5.28 0 0 0 1.276.161 5.284 5.284 0 0 0 5.156-4.077c.744-2.843-.957-5.793-3.827-6.49h-.053c-2.87-.698-5.74 1.018-6.432 3.916a5.39 5.39 0 0 0 3.88 6.49zm-19.985.161c2.923 0 5.369-2.414 5.369-5.364 0-2.95-2.392-5.364-5.316-5.364h-.053c-2.923 0-5.315 2.413-5.315 5.364 0 2.95 2.392 5.364 5.315 5.364zm-21.208 0c.266 0 .532 0 .798-.053 2.87-.43 4.943-3.165 4.464-6.115-.425-2.95-3.082-4.989-6.006-4.506h-.053c-2.87.43-4.89 3.165-4.464 6.115.424 2.627 2.657 4.56 5.262 4.56z"})),o||(o=y.createElement("path",{fill:"none",d:"M182.736 249.173v26.82h80.26l1.329 5.364H175.4v-32.184zm-17.966 0h-13.925v26.82h13.925z"})),l||(l=y.createElement("path",{fill:"none",d:"M150.845 249.173v26.82h13.925v5.364h-21.26v-32.184zm-92.805 0h74.84v26.82H51.397Zm48.954 18.667a5.281 5.33 0 0 0 4.624 2.789c.904 0 1.754-.215 2.604-.697a5.358 5.358 0 0 0 2.073-7.296c-1.435-2.574-4.624-3.54-7.229-2.092-2.55 1.449-3.507 4.72-2.072 7.296zm-16.69 2.79h.053c2.923 0 5.316-2.415 5.316-5.365s-2.392-5.364-5.316-5.364-5.315 2.413-5.315 5.364c0 2.95 2.34 5.364 5.262 5.364zm-21.26 0h.052c2.924 0 5.316-2.415 5.316-5.365s-2.392-5.364-5.316-5.364c-2.923 0-5.315 2.413-5.315 5.364 0 2.95 2.34 5.364 5.262 5.364z"})),c||(c=y.createElement("path",{fill:"none",d:"M52.035 249.173h6.006l-6.644 26.82h81.483v5.364H44.062Zm-34.071 42.912h253.111c.213 0 .426 0 .638-.053l34.55-4.345-5.773 20.49H17.964Z"})),s||(s=y.createElement("path",{fill:"none",d:"m300.49 308.178-1.51 5.364zM17.964 292.085v16.093H300.49l-1.51 5.364H10.63v-21.457z"})),m||(m=y.createElement("path",{fill:"none",d:"M10.934 302.813v-10.728l131.358.01 131.358.01 15.636-1.955c8.6-1.076 15.786-1.805 15.968-1.621.182.184-1.236 5.887-3.152 12.674l-3.485 12.34H10.934Z"})),p||(p=y.createElement("path",{fill:"#eb9f2e",d:"M11.237 302.813v-10.728l132.573-.01 132.573-.01 12.453-1.519c14.274-1.741 15.793-1.814 15.794-.759 0 .422-1.407 5.939-3.128 12.26l-3.13 11.495H11.238Z"})),d||(d=y.createElement("path",{fill:"none",d:"M44.664 280.591c.009-.253 1.734-7.356 3.834-15.785l3.817-15.326 40.205-.157 40.205-.158v31.886h-44.04c-24.221 0-44.031-.207-44.021-.46zm28.34-11.294c1.408-1.335 1.898-4.63 1.03-6.916-.493-1.295-3.389-2.786-5.41-2.786-2.105 0-5.147 3.07-5.147 5.194 0 1.889 1.463 4.981 2.569 5.43 2.048.832 5.606.36 6.959-.922zm21.261 0c1.407-1.335 1.898-4.63 1.029-6.916-.493-1.295-3.389-2.786-5.41-2.786-2.105 0-5.147 3.07-5.147 5.194 0 1.889 1.463 4.981 2.569 5.43 2.049.832 5.606.36 6.959-.922zm20.992.12c1.898-1.506 2.42-4.01 1.367-6.554-.942-2.274-2.512-3.268-5.167-3.268-2.42 0-5.46 2.891-5.46 5.194 0 1.889 1.463 4.981 2.57 5.43 1.852.752 5.245.346 6.69-.802zm28.401-4.305v-15.938h20.653v31.876h-20.653z"})),u||(u=y.createElement("path",{fill:"#eb9f2e",d:"M175.852 265.112v-15.938h80.135l.6 2.299c.33 1.264 1.993 7.953 3.694 14.865 1.702 6.912 3.237 13.05 3.413 13.64.301 1.015-2.064 1.073-43.761 1.073h-44.08Zm24.73 4.138c1.832-2.02 2.163-3.777 1.165-6.189-1.626-3.926-5.907-4.728-8.933-1.674-1.989 2.007-2.257 4.073-.877 6.765 1.064 2.077 1.647 2.365 4.918 2.429 1.832.036 2.801-.31 3.727-1.33zm21.246 0c1.735-1.934 2.089-3.992 1.098-6.384-1.495-3.61-5.994-4.363-8.852-1.479-1.988 2.007-2.256 4.073-.877 6.765 1.064 2.077 1.647 2.365 4.918 2.429 1.836.036 2.796-.308 3.713-1.33zm21.259.047c1.038-.985 1.406-2.009 1.406-3.917 0-3.434-1.442-5.155-4.685-5.594-2.255-.305-2.757-.131-4.397 1.524-2.067 2.086-2.35 4.117-.954 6.842 1.06 2.067 1.651 2.365 4.833 2.429 1.666.034 2.817-.356 3.797-1.284zm-99.429-4.185v-15.938h20.653v31.876h-20.653zm-78.814 15.479c-10.775-.094-19.59-.408-19.59-.699 0-.797 7.103-29.51 7.366-29.774.125-.127 18.2-.322 40.166-.434l39.939-.204v31.571l-24.146-.145c-13.28-.079-32.961-.22-43.735-.315Zm7.764-10.585c1.609-.87 2.585-4.818 1.772-7.171-1.21-3.501-6.312-4.384-9.2-1.593-1.966 1.902-2.253 4.697-.776 7.579.84 1.64 1.212 1.808 3.988 1.808 1.684 0 3.58-.28 4.216-.623zm21.26 0c1.61-.87 2.585-4.818 1.772-7.171-1.21-3.501-6.312-4.384-9.2-1.593-1.966 1.902-2.253 4.697-.776 7.579.84 1.64 1.212 1.808 3.988 1.808 1.684 0 3.581-.28 4.216-.623zm21.833-.587c1.661-1.676 2.08-3.852 1.24-6.424-.847-2.588-2.125-3.4-5.354-3.4-4.654 0-7.006 4.654-4.663 9.226.855 1.668 1.184 1.808 4.252 1.808 2.501 0 3.623-.3 4.525-1.21z"})))};var ie=function(){for(var e,t,n,r=(e=(0,y.useState)({width:globalThis.innerWidth,height:globalThis.innerHeight}),t=e[0],n=e[1],(0,y.useEffect)((function(){var e=function(){n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),t).width/16,a=[],i=0;i{n.d(t,{$:()=>h});var r=n(29093),a=n(57089),i=n(1434),o=n(75768),l=n(67308),c=n(8426);var s=function(e){var t=m[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+t[0]+"\n populateDemo("+t[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},m={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var p={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},d={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{n.r(t),n.d(t,{default:()=>se});var r,a,i,o,l,c,s,m,p,d,u,f=n(2944),h=n(34940),y=n(70114),g=n(67308),b=n(19017),v=n(1434),E=n(17164),k=n(37782),x=n(11320),w=n(2790),A=n(23316),z=function(e){return g.createElement("video",(0,k.A)({autoPlay:!0,loop:!0,controls:!0,playsInline:!0,muted:!0,disablePictureInPicture:!0},e))},T=n(94922),C=function(){return(0,T.A)("(max-width:1250px)")},S=g.createElement("div",{className:"inferable-code"},g.createElement(A.A,{language:"typescript"},'const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n\n// Hover to infer...\ntype User = typeof user.infer\n'),g.createElement("img",{height:"50%",src:"/img/isomorphicHover.png"})),H=g.createElement("div",{className:"inferable-code"},g.createElement(A.A,{language:"typescript"},"// Hover to infer...\n",'const arkUser = type({\n name: /^ark.*$/ as Infer<`ark${string}`>,\n birthday: morph("string", (s) => new Date(s)),\n "powerLevel?": "1<=number<9000"\n})'),g.createElement("img",{height:"60%",src:"/img/arkUser.png"})),I=g.createElement("div",{className:"inferable-code"},g.createElement(A.A,{language:"typescript"},"// Hover to infer...\n",'const zodUser = z.object({\n name: z.custom<`zod${string}`>(\n (val) => typeof val === "string" && /^zod.*$/.test(val)\n ),\n birthday: z.preprocess(\n (arg) => (typeof arg === "string" ? new Date(arg) : undefined),\n z.date()\n ),\n powerLevel: z.number().gte(1).lt(9000).optional()\n})'),g.createElement("img",{height:"80%",src:"/img/zodInfer.png"})),P=g.createElement(g.Fragment,null,H,I),O=g.createElement("div",{className:"inferable-code"},g.createElement(A.A,{language:"typescript"},"// Hover to see internal representation...\n","export const deepLeftOrRight = union(\n {\n auto: {\n discriminated: \"'left'\"\n }\n },\n {\n auto: {\n discriminated: \"'right'\"\n }\n }\n)"),g.createElement("img",{src:"/img/optimizedUnion.png"})),j=g.createElement("div",{className:"inferable-code"},g.createElement(A.A,{language:"typescript"},"// Hover to see internal representation...\n",'export const numericIntersection = type(\n "(1 <= number%2 < 100) & (0 < number%3 <= 99)"\n)',"\n \n\n\n\n\n"),g.createElement("img",{src:"/img/optimizedNumber.png"})),D=[{title:"Isomorphic",description:"Define types using TS syntax. Infer them 1:1. Use them to validate your data at runtime.",image:S},{title:"Concise",description:"Say more with less",image:P},{title:"Optimized",description:"ArkType is not just a validator\u2014 it's a full type system. Operations are deeply computed and optimized by default",image:g.createElement(g.Fragment,null,O,j)},{title:"Type-safe",description:"String definitions are statically parsed with each character you type and give detailed feedback just like in your editor.",image:g.createElement(v.A,{width:"100%"},g.createElement(z,{src:"/img/typePerf.mp4"}),g.createElement("caption",{style:{fontSize:".8rem"}},"Worried about performance? Don't be. This is how it feels to interact with a scope of 100 cyclic types (you may want to go fullscreen to see the details!)"))}],L=function(){return g.createElement(x.Ay,{sx:{alignContent:"center"},columns:C()?1:2,spacing:3},D.map((function(e,t){return g.createElement(M,(0,k.A)({key:t},e))})))},M=function(e){var t,n=(0,w.A)();return g.createElement(v.A,{spacing:2,maxWidth:"40em"},g.createElement(E.A,{component:"h3",variant:"h5",fontWeight:"700",width:"100%",textAlign:"center",color:n.palette.info.main},e.title),g.createElement(E.A,{component:"p",variant:"body1",fontWeight:"300",minHeight:"3rem"},e.description),g.createElement("div",{style:{padding:"6px",borderRadius:"16px"}},null!=(t=e.image)?t:null))},$=n(29453),N=n(91205),F=n(13749),W=n(46585),Z=n(53103),U=n(72375),q=n(52429),R=n(66026),V=function(){var e=(0,$.zy)().pathname,t=(0,w.A)().palette,n="dark"===(0,b.G)().colorMode,r=(0,g.useState)(e.includes("try")),a=r[0],i=r[1],o=n?"#ffffff00":"#000000aa";return g.createElement(g.Fragment,null,g.createElement(v.A,{alignItems:"start",width:"100%"},g.createElement(W.A,{variant:"contained",sx:{backgroundColor:o,backdropFilter:"blur(4px)",borderRadius:"2rem",fontSize:"1.5rem",fontFamily:'"Cascadia Code", sans-serif',textTransform:"none",color:t.primary.main,"&:hover":{backgroundColor:o,color:t.secondary.main,backdropFilter:"blur(6px)"},zIndex:1},onClick:function(){return i(!a)},endIcon:g.createElement("div",{style:{display:"flex"}},a?g.createElement(N.A,null):g.createElement(F.A,null))},a?"$ wq!":"$ code demo.ts",g.createElement(Z.P.div,{animate:{opacity:0},transition:{duration:.5,repeatType:"mirror",repeat:1/0}},"_"))),g.createElement(v.A,{width:"100%"},a?g.createElement(U.$,{embedId:"demo"}):g.createElement(z,{src:"/img/arktype.mp4",style:{width:"100%",marginTop:"-2.8rem"}})),g.createElement("sub",{style:{marginLeft:"2.3px",marginTop:"5px"}},g.createElement("code",null,"typescript@4.9.5")," in VS Code\u2014 no extensions or plugins required (",g.createElement("a",{href:"https://github.com/arktypeio/arktype#how",target:"_blank"},"how?"),")"))},G=n(88591),_=n(81652),J=n(43934),K=n(94800),B=n(41789),Y=function(){var e=(0,K.L)().scrollY,t=(0,B.s)(),n={position:"absolute",top:60,width:386};return e.onChange((function(e){t.start(e?{position:"fixed",top:"50%",width:340}:n)})),g.createElement(Z.P.div,{style:{right:0},initial:n,animate:t},g.createElement(X,null))},Q=function(){return g.createElement("div",{style:{width:"100%"}},g.createElement(X,null))},X=function(){return g.createElement(G.A,{style:{height:"8rem",margin:".5rem",padding:".7rem 1rem 0rem",backgroundColor:"#ffffff00",backdropFilter:"blur(1px)",borderRadius:"2rem",zIndex:1,fontFamily:'"Cascadia Code", sans-serif'},elevation:8},g.createElement(J.A,{className:"installationTabs"},g.createElement(_.A,{value:"node",default:!0},g.createElement(J.A,{className:"subTabs"},g.createElement(_.A,{value:"npm",attributes:{className:"npmTab"}},g.createElement(A.A,{language:"bash"},"npm install arktype")),g.createElement(_.A,{value:"pnpm",attributes:{className:"pnpmTab"}},g.createElement(A.A,{language:"bash"},"pnpm add arktype")),g.createElement(_.A,{value:"yarn",attributes:{className:"yarnTab"}},g.createElement(A.A,{language:"bash"},"yarn add arktype")))),g.createElement(_.A,{value:"bun",label:"bun"},g.createElement(A.A,{language:"bash"},"bun install arktype")),g.createElement(_.A,{value:"deno",label:"deno"},g.createElement(A.A,{language:"typescript"},'import { type } from "npm:arktype"'))))},ee=function(){var e=(0,b.G)().colorMode;return g.createElement("main",{style:{display:"flex",justifyContent:"center"}},g.createElement(v.A,{justifyContent:"center",padding:"1rem 0rem 1rem",spacing:1,width:"100%",maxWidth:"60rem"},g.createElement(V,null),(0,T.A)("(min-width:1420px)")?g.createElement(Y,null):g.createElement(Q,null),g.createElement(E.A,{color:"dark"===e?"primary.light":"primary.dark",className:"contents",fontSize:"1.3rem"},g.createElement("p",null,"ArkType is a runtime validation library that can infer"," ",g.createElement("b",null,"TypeScript definitions 1:1")," and reuse them as"," ",g.createElement("b",null,"highly-optimized validators")," for your data."),g.createElement("p",null,"With each character you type, you'll get"," ",g.createElement("b",null,"immediate feedback from your editor")," in the form of either a fully-inferred ",g.createElement("code",null,"Type")," or a specific and helpful ",g.createElement("code",null,"ParseError"),"."),g.createElement("p",null,"This result exactly mirrors what you can expect to happen at runtime down to the punctuation of the error message- ",g.createElement("b",null,"no plugins required"),".")),g.createElement(L,null)))},te=["title","titleId"];function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const ae=function(e){var t=e.title,n=e.titleId,f=re(e,te);return g.createElement("svg",ne({viewBox:"0 0 375 375","aria-labelledby":n},f),t?g.createElement("title",{id:n},t):null,r||(r=g.createElement("path",{fill:"#4b3621",d:"M5.314 281.357h27.799l9.62-38.835a5.288 5.337 0 0 1 5.156-4.077h212.609a5.288 5.337 0 0 1 5.156 4.077l9.461 38.3 37.844-4.775c1.754-.268 3.508.43 4.678 1.824 1.169 1.34 1.542 3.218 1.063 4.935l-10.63 37.548a5.295 5.344 0 0 1-5.103 3.916H5.315c-2.923 0-5.316-2.414-5.316-5.364V286.72c0-2.95 2.391-5.364 5.315-5.364Zm127.566-32.184H52.035l-7.972 32.184h88.817zm31.89 0h-21.26v32.184h21.26zm91.582 0h-80.95v32.184h88.923zM10.63 313.542h288.35l7.283-25.855-34.55 4.344c-.212.054-.425.054-.637.054H10.629v21.457z"})),a||(a=g.createElement("path",{fill:"none",d:"M106.994 267.84a5.281 5.33 0 0 0 4.624 2.789c.904 0 1.754-.215 2.604-.697a5.358 5.358 0 0 0 2.073-7.296c-1.435-2.574-4.624-3.54-7.229-2.092-2.55 1.449-3.507 4.72-2.072 7.296zm-43.212-2.575c0 2.95 2.338 5.364 5.262 5.364h.052c2.924 0 5.316-2.414 5.316-5.364 0-2.95-2.392-5.364-5.316-5.364-2.923 0-5.314 2.413-5.314 5.364zm127.671.805c.425 2.628 2.658 4.56 5.262 4.56.266 0 .531 0 .797-.054 2.87-.43 4.943-3.165 4.465-6.115-.426-2.95-3.083-4.989-6.006-4.506h-.053c-2.87.428-4.89 3.165-4.465 6.114zm21.155-.805c0 2.95 2.391 5.364 5.315 5.364 2.924 0 5.369-2.414 5.369-5.364 0-2.95-2.392-5.364-5.316-5.364h-.053c-2.923 0-5.315 2.413-5.315 5.364zm-127.566 0c0 2.95 2.339 5.364 5.262 5.364h.053c2.923 0 5.316-2.414 5.316-5.364 0-2.95-2.392-5.364-5.316-5.364s-5.315 2.413-5.315 5.364zm152.866 5.203a5.232 5.28 0 0 0 1.276.161 5.284 5.284 0 0 0 5.156-4.077c.744-2.843-.957-5.793-3.827-6.49h-.053c-2.87-.698-5.74 1.018-6.432 3.916a5.39 5.39 0 0 0 3.88 6.49z"})),i||(i=g.createElement("path",{fill:"none",d:"M182.736 249.173h73.616l6.644 26.82h-80.26Zm55.172 21.295a5.232 5.28 0 0 0 1.276.161 5.284 5.284 0 0 0 5.156-4.077c.744-2.843-.957-5.793-3.827-6.49h-.053c-2.87-.698-5.74 1.018-6.432 3.916a5.39 5.39 0 0 0 3.88 6.49zm-19.985.161c2.923 0 5.369-2.414 5.369-5.364 0-2.95-2.392-5.364-5.316-5.364h-.053c-2.923 0-5.315 2.413-5.315 5.364 0 2.95 2.392 5.364 5.315 5.364zm-21.208 0c.266 0 .532 0 .798-.053 2.87-.43 4.943-3.165 4.464-6.115-.425-2.95-3.082-4.989-6.006-4.506h-.053c-2.87.43-4.89 3.165-4.464 6.115.424 2.627 2.657 4.56 5.262 4.56z"})),o||(o=g.createElement("path",{fill:"none",d:"M182.736 249.173v26.82h80.26l1.329 5.364H175.4v-32.184zm-17.966 0h-13.925v26.82h13.925z"})),l||(l=g.createElement("path",{fill:"none",d:"M150.845 249.173v26.82h13.925v5.364h-21.26v-32.184zm-92.805 0h74.84v26.82H51.397Zm48.954 18.667a5.281 5.33 0 0 0 4.624 2.789c.904 0 1.754-.215 2.604-.697a5.358 5.358 0 0 0 2.073-7.296c-1.435-2.574-4.624-3.54-7.229-2.092-2.55 1.449-3.507 4.72-2.072 7.296zm-16.69 2.79h.053c2.923 0 5.316-2.415 5.316-5.365s-2.392-5.364-5.316-5.364-5.315 2.413-5.315 5.364c0 2.95 2.34 5.364 5.262 5.364zm-21.26 0h.052c2.924 0 5.316-2.415 5.316-5.365s-2.392-5.364-5.316-5.364c-2.923 0-5.315 2.413-5.315 5.364 0 2.95 2.34 5.364 5.262 5.364z"})),c||(c=g.createElement("path",{fill:"none",d:"M52.035 249.173h6.006l-6.644 26.82h81.483v5.364H44.062Zm-34.071 42.912h253.111c.213 0 .426 0 .638-.053l34.55-4.345-5.773 20.49H17.964Z"})),s||(s=g.createElement("path",{fill:"none",d:"m300.49 308.178-1.51 5.364zM17.964 292.085v16.093H300.49l-1.51 5.364H10.63v-21.457z"})),m||(m=g.createElement("path",{fill:"none",d:"M10.934 302.813v-10.728l131.358.01 131.358.01 15.636-1.955c8.6-1.076 15.786-1.805 15.968-1.621.182.184-1.236 5.887-3.152 12.674l-3.485 12.34H10.934Z"})),p||(p=g.createElement("path",{fill:"#eb9f2e",d:"M11.237 302.813v-10.728l132.573-.01 132.573-.01 12.453-1.519c14.274-1.741 15.793-1.814 15.794-.759 0 .422-1.407 5.939-3.128 12.26l-3.13 11.495H11.238Z"})),d||(d=g.createElement("path",{fill:"none",d:"M44.664 280.591c.009-.253 1.734-7.356 3.834-15.785l3.817-15.326 40.205-.157 40.205-.158v31.886h-44.04c-24.221 0-44.031-.207-44.021-.46zm28.34-11.294c1.408-1.335 1.898-4.63 1.03-6.916-.493-1.295-3.389-2.786-5.41-2.786-2.105 0-5.147 3.07-5.147 5.194 0 1.889 1.463 4.981 2.569 5.43 2.048.832 5.606.36 6.959-.922zm21.261 0c1.407-1.335 1.898-4.63 1.029-6.916-.493-1.295-3.389-2.786-5.41-2.786-2.105 0-5.147 3.07-5.147 5.194 0 1.889 1.463 4.981 2.569 5.43 2.049.832 5.606.36 6.959-.922zm20.992.12c1.898-1.506 2.42-4.01 1.367-6.554-.942-2.274-2.512-3.268-5.167-3.268-2.42 0-5.46 2.891-5.46 5.194 0 1.889 1.463 4.981 2.57 5.43 1.852.752 5.245.346 6.69-.802zm28.401-4.305v-15.938h20.653v31.876h-20.653z"})),u||(u=g.createElement("path",{fill:"#eb9f2e",d:"M175.852 265.112v-15.938h80.135l.6 2.299c.33 1.264 1.993 7.953 3.694 14.865 1.702 6.912 3.237 13.05 3.413 13.64.301 1.015-2.064 1.073-43.761 1.073h-44.08Zm24.73 4.138c1.832-2.02 2.163-3.777 1.165-6.189-1.626-3.926-5.907-4.728-8.933-1.674-1.989 2.007-2.257 4.073-.877 6.765 1.064 2.077 1.647 2.365 4.918 2.429 1.832.036 2.801-.31 3.727-1.33zm21.246 0c1.735-1.934 2.089-3.992 1.098-6.384-1.495-3.61-5.994-4.363-8.852-1.479-1.988 2.007-2.256 4.073-.877 6.765 1.064 2.077 1.647 2.365 4.918 2.429 1.836.036 2.796-.308 3.713-1.33zm21.259.047c1.038-.985 1.406-2.009 1.406-3.917 0-3.434-1.442-5.155-4.685-5.594-2.255-.305-2.757-.131-4.397 1.524-2.067 2.086-2.35 4.117-.954 6.842 1.06 2.067 1.651 2.365 4.833 2.429 1.666.034 2.817-.356 3.797-1.284zm-99.429-4.185v-15.938h20.653v31.876h-20.653zm-78.814 15.479c-10.775-.094-19.59-.408-19.59-.699 0-.797 7.103-29.51 7.366-29.774.125-.127 18.2-.322 40.166-.434l39.939-.204v31.571l-24.146-.145c-13.28-.079-32.961-.22-43.735-.315Zm7.764-10.585c1.609-.87 2.585-4.818 1.772-7.171-1.21-3.501-6.312-4.384-9.2-1.593-1.966 1.902-2.253 4.697-.776 7.579.84 1.64 1.212 1.808 3.988 1.808 1.684 0 3.58-.28 4.216-.623zm21.26 0c1.61-.87 2.585-4.818 1.772-7.171-1.21-3.501-6.312-4.384-9.2-1.593-1.966 1.902-2.253 4.697-.776 7.579.84 1.64 1.212 1.808 3.988 1.808 1.684 0 3.581-.28 4.216-.623zm21.833-.587c1.661-1.676 2.08-3.852 1.24-6.424-.847-2.588-2.125-3.4-5.354-3.4-4.654 0-7.006 4.654-4.663 9.226.855 1.668 1.184 1.808 4.252 1.808 2.501 0 3.623-.3 4.525-1.21z"})))};var ie=function(){for(var e,t,n,r=(e=(0,g.useState)({width:globalThis.innerWidth,height:globalThis.innerHeight}),t=e[0],n=e[1],(0,g.useEffect)((function(){var e=function(){n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),t).width/16,a=[],i=0;i{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.20-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.20-alpha/api/morph",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1ebef08a.e633ade3.js b/assets/js/1ebef08a.e633ade3.js new file mode 100644 index 0000000000..d4cfc2d437 --- /dev/null +++ b/assets/js/1ebef08a.e633ade3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6197],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),y=u(t),m=o,f=y["".concat(i,".").concat(m)]||y[m]||s[m]||a;return t?n.createElement(f,p(p({ref:r},c),{},{components:t})):n.createElement(f,p({ref:r},c))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=m;var l={};for(var i in r)hasOwnProperty.call(r,i)&&(l[i]=r[i]);l.originalType=e,l[y]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>f,frontMatter:()=>l,metadata:()=>u,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.20-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.20-alpha/api/morph",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},m="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(m,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"morph"},"morph"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/morph"},"|",">"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1ed0e172.bf7de94a.js b/assets/js/1ed0e172.2e40dbc5.js similarity index 98% rename from assets/js/1ed0e172.bf7de94a.js rename to assets/js/1ed0e172.2e40dbc5.js index 64eec6b10d..dda635b240 100644 --- a/assets/js/1ed0e172.bf7de94a.js +++ b/assets/js/1ed0e172.2e40dbc5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9461],{24188:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"1.0.20-alpha","label":"1.0.20-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.20-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.20-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.20-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.20-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.20-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.20-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6388],{73181:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"1.0.20-alpha","label":"1.0.20-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.20-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.20-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.20-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.20-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.20-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.20-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/201eb429.99ad5dde.js b/assets/js/201eb429.99ad5dde.js new file mode 100644 index 0000000000..94a4d956fc --- /dev/null +++ b/assets/js/201eb429.99ad5dde.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5410],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>v});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var u=n.createContext({}),i=function(e){var r=n.useContext(u),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=i(e.components);return n.createElement(u.Provider,{value:r},e.children)},f="mdxType",y={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(t),s=a,v=f["".concat(u,".").concat(s)]||f[s]||y[s]||l;return t?n.createElement(v,o(o({ref:r},c),{},{components:t})):n.createElement(v,o({ref:r},c))}));function v(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var u in r)hasOwnProperty.call(r,u)&&(p[u]=r[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>u,default:()=>v,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.23-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.23-alpha/api/valueof",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:f},s="wrapper";function v(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},y,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"valueof"},"valueOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/valueof"},"==="))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'["===", T]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"valueOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.yg)("br",null))))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/201eb429.a685c67d.js b/assets/js/201eb429.a685c67d.js deleted file mode 100644 index 2bcdf103d3..0000000000 --- a/assets/js/201eb429.a685c67d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2659],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=n.createContext({}),i=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},c=function(e){var t=i(e.components);return n.createElement(u.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(r),v=a,m=f["".concat(u,".").concat(v)]||f[v]||s[v]||l;return r?n.createElement(m,o(o({ref:t},c),{},{components:r})):n.createElement(m,o({ref:t},c))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,o=new Array(l);o[0]=v;var p={};for(var u in t)hasOwnProperty.call(t,u)&&(p[u]=t[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=r(73268),a=r(68039),l=(r(29901),r(57522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.23-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.23-alpha/api/valueof",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},v="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,o);return(0,l.kt)(v,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"valueof"},"valueOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/valueof"},"==="))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'["===", T]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"valueOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/20925844.63106b1c.js b/assets/js/20925844.63106b1c.js deleted file mode 100644 index 975c50fce7..0000000000 --- a/assets/js/20925844.63106b1c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9596],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(r),f=o,v=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return r?n.createElement(v,l(l({ref:t},u),{},{components:r})):n.createElement(v,l({ref:t},u))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>v,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.29-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/api/resolvednode",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function v(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/api/resolvednode"},"node"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/20925844.7ba9fd8a.js b/assets/js/20925844.7ba9fd8a.js new file mode 100644 index 0000000000..3bf266ff4c --- /dev/null +++ b/assets/js/20925844.7ba9fd8a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5119],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(t),f=o,y=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return t?n.createElement(y,l(l({ref:r},u),{},{components:t})):n.createElement(y,l({ref:r},u))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.29-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/api/resolvednode",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/resolvednode"},"node"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/20bbe3a4.3424f288.js b/assets/js/20bbe3a4.3424f288.js new file mode 100644 index 0000000000..e788a0f6ab --- /dev/null +++ b/assets/js/20bbe3a4.3424f288.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3270],{62757:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>f});var r=t(67308);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{$:()=>y});var r=t(29093),a=t(57089),o=t(1434),i=t(75768),s=t(67308),p=t(8426);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(37782),a=t(32345),o=(t(67308),t(62757)),i=t(58452),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.22-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.22-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.22-alpha/",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.22-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.A)(e,s);return(0,o.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"getting-started"},"Getting Started"),(0,o.yg)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.yg)("sub",null,(0,o.yg)("sub",null,"\ud83d\udce6",(0,o.yg)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.yg)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.yg)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.yg)("code",null,"npm install arktype"),(0,o.yg)("sub",null,"(or whatever package manager you prefer)"),(0,o.yg)("br",null),(0,o.yg)("p",null,"Our types are tested in ",(0,o.yg)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.yg)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.yg)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.yg)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.yg)("p",null,(0,o.yg)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.yg)("h2",{id:"your-first-type"},"Your first type"),(0,o.yg)(i.$,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/20bbe3a4.35344cac.js b/assets/js/20bbe3a4.35344cac.js deleted file mode 100644 index 0ee43428df..0000000000 --- a/assets/js/20bbe3a4.35344cac.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[215],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(19982),a=t(60024),o=t(53800),i=t(49361),s=t(29901),p=t(43346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(73268),a=t(68039),o=(t(29901),t(57522)),i=t(99499),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.22-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.22-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.22-alpha/",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.22-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/210bc92c.98402eeb.js b/assets/js/210bc92c.98402eeb.js new file mode 100644 index 0000000000..1daeb49f6f --- /dev/null +++ b/assets/js/210bc92c.98402eeb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4223],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=n.createContext({}),c=function(e){var r=n.useContext(l),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(l.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(t),y=o,g=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return t?n.createElement(g,p(p({ref:r},u),{},{components:t})):n.createElement(g,p({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=y;var i={};for(var l in r)hasOwnProperty.call(r,l)&&(i[l]=r[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>l,default:()=>g,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.22-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.22-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.22-alpha/api/parseconfigtuple"},":"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["type", ":", config]')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/210bc92c.c55013d9.js b/assets/js/210bc92c.c55013d9.js deleted file mode 100644 index 1e49bf9e37..0000000000 --- a/assets/js/210bc92c.c55013d9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9910],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.22-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.22-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.22-alpha/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/218a10b7.038b0809.js b/assets/js/218a10b7.038b0809.js new file mode 100644 index 0000000000..4daad4a005 --- /dev/null +++ b/assets/js/218a10b7.038b0809.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5891],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},u=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(t),y=a,m=s["".concat(p,".").concat(y)]||s[y]||f[y]||o;return t?n.createElement(m,c(c({ref:r},u),{},{components:t})):n.createElement(m,c({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,c=new Array(o);c[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.27-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.27-alpha/api/ark",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},y="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,c);return(0,o.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"ark"},"ark"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/218a10b7.65b573d8.js b/assets/js/218a10b7.65b573d8.js deleted file mode 100644 index 7b463b337b..0000000000 --- a/assets/js/218a10b7.65b573d8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),m=a,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||o;return r?n.createElement(y,c(c({ref:t},u),{},{components:r})):n.createElement(y,c({ref:t},u))}));function y(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,c=new Array(o);c[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.27-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.27-alpha/api/ark",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,a.Z)(e,c);return(0,o.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"ark"},"ark"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2378f488.c0a5eb71.js b/assets/js/2378f488.c0a5eb71.js new file mode 100644 index 0000000000..d2f94f5309 --- /dev/null +++ b/assets/js/2378f488.c0a5eb71.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5037],{62757:(e,t,r)=>{r.d(t,{xA:()=>l,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),f=o,d=u["".concat(s,".").concat(f)]||u[f]||y[f]||a;return r?n.createElement(d,i(i({ref:t},l),{},{components:r})):n.createElement(d,i({ref:t},l))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=f;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.28-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.28-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.28-alpha/api",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.28-alpha/api/operators"}},l={},u=[],y={toc:u},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"api"},"API"),(0,a.yg)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.yg)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.yg)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2461ffa2.b88c9f40.js b/assets/js/2461ffa2.6c0bef5e.js similarity index 71% rename from assets/js/2461ffa2.b88c9f40.js rename to assets/js/2461ffa2.6c0bef5e.js index 2e6b767322..a0db27ef21 100644 --- a/assets/js/2461ffa2.b88c9f40.js +++ b/assets/js/2461ffa2.6c0bef5e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7600],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},l="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),l=c(r),y=o,d=l["".concat(s,".").concat(y)]||l[y]||f[y]||a;return r?n.createElement(d,i(i({ref:t},u),{},{components:r})):n.createElement(d,i({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[l]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>l});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/docs/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/next/api",draft:!1,tags:[],version:"current",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/next/api/operators"}},u={},l=[],f={toc:l},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3503],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},l="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),l=c(r),f=o,d=l["".concat(s,".").concat(f)]||l[f]||y[f]||a;return r?n.createElement(d,i(i({ref:t},u),{},{components:r})):n.createElement(d,i({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=f;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[l]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>l});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/docs/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/next/api",draft:!1,tags:[],version:"current",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/next/api/operators"}},u={},l=[],y={toc:l},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"api"},"API"),(0,a.yg)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.yg)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.yg)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/24fd1285.c4d6359e.js b/assets/js/24fd1285.9e9b168c.js similarity index 83% rename from assets/js/24fd1285.c4d6359e.js rename to assets/js/24fd1285.9e9b168c.js index 0da8cff863..c95fd5a7e1 100644 --- a/assets/js/24fd1285.c4d6359e.js +++ b/assets/js/24fd1285.9e9b168c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1690],{57522:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>y});var r=n(29901);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=r.createContext({}),l=function(e){var t=r.useContext(f),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=l(e.components);return r.createElement(f.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,f=e.parentName,p=d(e,["components","mdxType","originalType","parentName"]),c=l(n),u=i,y=c["".concat(f,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var d={};for(var f in t)hasOwnProperty.call(t,f)&&(d[f]=t[f]);d.originalType=e,d[c]="string"==typeof e?e:i,o[1]=d;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>f,default:()=>y,frontMatter:()=>d,metadata:()=>l,toc:()=>c});var r=n(73268),i=n(68039),a=(n(29901),n(57522)),o=["components"],d={hide_table_of_contents:!0},f="validateDefinition",l={unversionedId:"api/validatedefinition",id:"version-1.0.29-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/api/validatedefinition",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.Z)(e,o);return(0,a.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4663],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>y});var r=n(67308);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=r.createContext({}),l=function(e){var t=r.useContext(f),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=l(e.components);return r.createElement(f.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,f=e.parentName,p=d(e,["components","mdxType","originalType","parentName"]),c=l(n),u=i,y=c["".concat(f,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var d={};for(var f in t)hasOwnProperty.call(t,f)&&(d[f]=t[f]);d.originalType=e,d[c]="string"==typeof e?e:i,o[1]=d;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>f,default:()=>y,frontMatter:()=>d,metadata:()=>l,toc:()=>c});var r=n(37782),i=n(32345),a=(n(67308),n(62757)),o=["components"],d={hide_table_of_contents:!0},f="validateDefinition",l={unversionedId:"api/validatedefinition",id:"version-1.0.29-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/api/validatedefinition",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.A)(e,o);return(0,a.yg)(u,(0,r.A)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/25c35c86.54851612.js b/assets/js/25c35c86.54851612.js deleted file mode 100644 index d09c8b742d..0000000000 --- a/assets/js/25c35c86.54851612.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2155],{15745:e=>{e.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/25c35c86.918b9169.js b/assets/js/25c35c86.918b9169.js new file mode 100644 index 0000000000..da923deeb1 --- /dev/null +++ b/assets/js/25c35c86.918b9169.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6140],{4061:e=>{e.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/261d4567.109b94a1.js b/assets/js/261d4567.109b94a1.js new file mode 100644 index 0000000000..940aba6260 --- /dev/null +++ b/assets/js/261d4567.109b94a1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5020],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(t),f=o,y=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return t?n.createElement(y,l(l({ref:r},u),{},{components:t})):n.createElement(y,l({ref:r},u))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.26-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.26-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/resolvednode"},"node"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/261d4567.180961cb.js b/assets/js/261d4567.180961cb.js deleted file mode 100644 index 41a908c5ab..0000000000 --- a/assets/js/261d4567.180961cb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[504],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(r),f=o,v=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return r?n.createElement(v,l(l({ref:t},u),{},{components:r})):n.createElement(v,l({ref:t},u))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>v,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.26-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.26-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function v(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/resolvednode"},"node"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/26c0ba22.9afb99bf.js b/assets/js/26c0ba22.9afb99bf.js new file mode 100644 index 0000000000..9e04bf8015 --- /dev/null +++ b/assets/js/26c0ba22.9afb99bf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5169],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),g=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},y=function(e){var t=g(e.components);return r.createElement(i.Provider,{value:t},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=g(n),u=a,m=c["".concat(i,".").concat(u)]||c[u]||d[u]||l;return n?r.createElement(m,o(o({ref:t},y),{},{components:n})):r.createElement(m,o({ref:t},y))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,o=new Array(l);o[0]=u;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>g,toc:()=>c});var r=n(37782),a=n(32345),l=(n(67308),n(62757)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",g={unversionedId:"api/jsobjectsscope",id:"version-1.0.22-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.22-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"text",id:"text",level:2}],d={toc:c},u="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,o);return(0,l.yg)(u,(0,r.A)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/26c0ba22.bb413e05.js b/assets/js/26c0ba22.bb413e05.js deleted file mode 100644 index d5b9714989..0000000000 --- a/assets/js/26c0ba22.bb413e05.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6580],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(73268),a=n(68039),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.22-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.22-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/54a2e480.c5c86114.js b/assets/js/288a554d.833ec4f4.js similarity index 69% rename from assets/js/54a2e480.c5c86114.js rename to assets/js/288a554d.833ec4f4.js index 391aa948a9..9b76d3844a 100644 --- a/assets/js/54a2e480.c5c86114.js +++ b/assets/js/288a554d.833ec4f4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[863],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(73268),o=t(68039),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.26-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.26-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.26-alpha/api/scope",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[166],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),y=o,f=u["".concat(p,".").concat(y)]||u[y]||d[y]||s;return t?r.createElement(f,a(a({ref:n},l),{},{components:t})):r.createElement(f,a({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=y;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(37782),o=t(32345),s=(t(67308),t(62757)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.21-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.21-alpha/api/scope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},y="wrapper";function f(e){var n=e.components,t=(0,o.A)(e,a);return(0,s.yg)(y,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.yg)("h1",{id:"scope"},"scope"),(0,s.yg)("h2",{id:"text"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.yg)("hr",null),(0,s.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.yg)("h1",{id:"scope-1"},"Scope"),(0,s.yg)("h2",{id:"text-1"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/288a554d.c116d6ca.js b/assets/js/288a554d.c116d6ca.js deleted file mode 100644 index 28d20e3160..0000000000 --- a/assets/js/288a554d.c116d6ca.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4644],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(73268),o=t(68039),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.21-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.21-alpha/api/scope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/28b74367.15df7dcf.js b/assets/js/28b74367.15df7dcf.js new file mode 100644 index 0000000000..0fe9f633b6 --- /dev/null +++ b/assets/js/28b74367.15df7dcf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5566],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=n.createContext({}),c=function(e){var r=n.useContext(l),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(l.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(t),y=o,g=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return t?n.createElement(g,p(p({ref:r},u),{},{components:t})):n.createElement(g,p({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=y;var i={};for(var l in r)hasOwnProperty.call(r,l)&&(i[l]=r[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>l,default:()=>g,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.23-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.23-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/parseconfigtuple"},":"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["type", ":", config]')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/28b74367.5c39fadf.js b/assets/js/28b74367.5c39fadf.js deleted file mode 100644 index 31be817e92..0000000000 --- a/assets/js/28b74367.5c39fadf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6166],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.23-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.23-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/29e92f5e.3bf128bf.js b/assets/js/29e92f5e.ab286950.js similarity index 55% rename from assets/js/29e92f5e.3bf128bf.js rename to assets/js/29e92f5e.ab286950.js index 158e86746a..db2bce682d 100644 --- a/assets/js/29e92f5e.3bf128bf.js +++ b/assets/js/29e92f5e.ab286950.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8202],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),a=n(68039),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"api/instanceof",title:"instanceOf",description:"operator",source:"@site/docs/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/next/api/instanceof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/next/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1132],{62757:(e,t,n)=>{n.d(t,{xA:()=>u,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},y=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),y=a,m=s["".concat(c,".").concat(y)]||s[y]||f[y]||o;return n?r.createElement(m,l(l({ref:t},u),{},{components:n})):r.createElement(m,l({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(37782),a=n(32345),o=(n(67308),n(62757)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"api/instanceof",title:"instanceOf",description:"operator",source:"@site/docs/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/next/api/instanceof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},y="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,l);return(0,o.yg)(y,(0,r.A)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"instanceof"},"instanceOf"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/next/api/instanceof"},"instanceOf"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.yg)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2bea6d8f.344042a1.js b/assets/js/2bea6d8f.344042a1.js new file mode 100644 index 0000000000..5fcc12a0d3 --- /dev/null +++ b/assets/js/2bea6d8f.344042a1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5141],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>v});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var u=n.createContext({}),i=function(e){var r=n.useContext(u),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=i(e.components);return n.createElement(u.Provider,{value:r},e.children)},f="mdxType",y={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(t),s=a,v=f["".concat(u,".").concat(s)]||f[s]||y[s]||l;return t?n.createElement(v,o(o({ref:r},c),{},{components:t})):n.createElement(v,o({ref:r},c))}));function v(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var u in r)hasOwnProperty.call(r,u)&&(p[u]=r[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>u,default:()=>v,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.24-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.24-alpha/api/valueof",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:f},s="wrapper";function v(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},y,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"valueof"},"valueOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/valueof"},"==="))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'["===", T]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"valueOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.yg)("br",null))))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2bea6d8f.a188a451.js b/assets/js/2bea6d8f.a188a451.js deleted file mode 100644 index 08cafa3c0d..0000000000 --- a/assets/js/2bea6d8f.a188a451.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6284],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=n.createContext({}),i=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},c=function(e){var t=i(e.components);return n.createElement(u.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(r),v=a,m=f["".concat(u,".").concat(v)]||f[v]||s[v]||l;return r?n.createElement(m,o(o({ref:t},c),{},{components:r})):n.createElement(m,o({ref:t},c))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,o=new Array(l);o[0]=v;var p={};for(var u in t)hasOwnProperty.call(t,u)&&(p[u]=t[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=r(73268),a=r(68039),l=(r(29901),r(57522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.24-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.24-alpha/api/valueof",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},v="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,o);return(0,l.kt)(v,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"valueof"},"valueOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/valueof"},"==="))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'["===", T]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"valueOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2d805ff0.815e09fc.js b/assets/js/2d805ff0.815e09fc.js deleted file mode 100644 index 6363689042..0000000000 --- a/assets/js/2d805ff0.815e09fc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2310],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.20-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.20-alpha/api/problem",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2d805ff0.a5058062.js b/assets/js/2d805ff0.a5058062.js new file mode 100644 index 0000000000..0326873aa0 --- /dev/null +++ b/assets/js/2d805ff0.a5058062.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4926],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},s=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},d=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(t),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return t?n.createElement(f,c(c({ref:r},s),{},{components:t})):n.createElement(f,c({ref:r},s))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,c=new Array(a);c[0]=d;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.20-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.20-alpha/api/problem",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,c);return(0,a.yg)(d,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"problem"},"Problem"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2dbcb267.dfa331fc.js b/assets/js/2dbcb267.ddcba851.js similarity index 65% rename from assets/js/2dbcb267.dfa331fc.js rename to assets/js/2dbcb267.ddcba851.js index c47bd15d96..c6fac150ba 100644 --- a/assets/js/2dbcb267.dfa331fc.js +++ b/assets/js/2dbcb267.ddcba851.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6521],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),l=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),y=o,d=s["".concat(c,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},c="type",l={unversionedId:"api/type",id:"version-1.0.29-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/api/type",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8737],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),l=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(c.Provider,{value:t},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),y=l(r),f=o,d=y["".concat(c,".").concat(f)]||y[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[y]="string"==typeof e?e:o,p[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>l,toc:()=>y});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),p=["components"],i={hide_table_of_contents:!0},c="type",l={unversionedId:"api/type",id:"version-1.0.29-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/api/type",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],s={toc:y},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,p);return(0,a.yg)(f,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"type"},"type"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.yg)("hr",null),(0,a.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.yg)("h1",{id:"type-1"},"Type"),(0,a.yg)("h2",{id:"text-1"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3113bb30.d152d555.js b/assets/js/3113bb30.d152d555.js new file mode 100644 index 0000000000..60759c5035 --- /dev/null +++ b/assets/js/3113bb30.d152d555.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7878],{62757:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>m});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=r.createContext({}),u=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=u(e.components);return r.createElement(l.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=u(t),f=o,m=s["".concat(l,".").concat(f)]||s[f]||d[f]||a;return t?r.createElement(m,i(i({ref:n},c),{},{components:t})):r.createElement(m,i({ref:n},c))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[s]="string"==typeof e?e:o,i[1]=p;for(var u=2;u{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>s});var r=t(37782),o=t(32345),a=(t(67308),t(62757)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",u={unversionedId:"api/precompileddefaults",id:"version-1.0.29-alpha/api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/api/precompileddefaults",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"text",id:"text",level:2}],d={toc:s},f="wrapper";function m(e){var n=e.components,t=(0,o.A)(e,i);return(0,a.yg)(f,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => Out\n parsedNumber: (In: string) => Out\n parsedInteger: (In: string) => Out\n parsedDate: (In: string) => Out\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3113bb30.ec4ef608.js b/assets/js/3113bb30.ec4ef608.js deleted file mode 100644 index 0eccfc3aac..0000000000 --- a/assets/js/3113bb30.ec4ef608.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[523],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=r.createContext({}),u=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=u(e.components);return r.createElement(l.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=u(t),f=o,m=s["".concat(l,".").concat(f)]||s[f]||d[f]||a;return t?r.createElement(m,i(i({ref:n},c),{},{components:t})):r.createElement(m,i({ref:n},c))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[s]="string"==typeof e?e:o,i[1]=p;for(var u=2;u{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>s});var r=t(73268),o=t(68039),a=(t(29901),t(57522)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",u={unversionedId:"api/precompileddefaults",id:"version-1.0.29-alpha/api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/api/precompileddefaults",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"text",id:"text",level:2}],d={toc:s},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,i);return(0,a.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => Out\n parsedNumber: (In: string) => Out\n parsedInteger: (In: string) => Out\n parsedDate: (In: string) => Out\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/32ed2c3f.338f8ab2.js b/assets/js/32ed2c3f.338f8ab2.js deleted file mode 100644 index ec2582e763..0000000000 --- a/assets/js/32ed2c3f.338f8ab2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9725],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.29-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/api/morph",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/32ed2c3f.4fecaefa.js b/assets/js/32ed2c3f.4fecaefa.js new file mode 100644 index 0000000000..b61dc7bda5 --- /dev/null +++ b/assets/js/32ed2c3f.4fecaefa.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7897],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),y=u(t),m=o,f=y["".concat(i,".").concat(m)]||y[m]||s[m]||a;return t?n.createElement(f,p(p({ref:r},c),{},{components:t})):n.createElement(f,p({ref:r},c))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=m;var l={};for(var i in r)hasOwnProperty.call(r,i)&&(l[i]=r[i]);l.originalType=e,l[y]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>f,frontMatter:()=>l,metadata:()=>u,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.29-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/api/morph",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},m="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(m,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"morph"},"morph"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/morph"},"|",">"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3316.dff2b860.js b/assets/js/3316.dff2b860.js new file mode 100644 index 0000000000..9fc7c3e8e6 --- /dev/null +++ b/assets/js/3316.dff2b860.js @@ -0,0 +1 @@ +(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3316],{23316:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var o=n(37782),r=n(32345),a=n(67308),c=n(3681),s=n(35284),l=n(19017),i=n(83322);function u(){var e=(0,i.p)().prism,t=(0,l.G)().colorMode,n=e.theme,o=e.darkTheme||n;return"dark"===t?o:n}var p=n(91443),d=n(90655),m=n(29350),f=n.n(m),g=(0,d.A)(/title=(["'])(.*?)\1/,{quote:1,title:2}),v=(0,d.A)(/\{([\d,-]+)\}/,{range:1}),y={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}};function h(e,t){var n=e.map((function(e){var n=y[e],o=n.start,r=n.end;return"(?:"+o+"\\s*("+t.flatMap((function(e){var t,n;return[e.line,null==(t=e.block)?void 0:t.start,null==(n=e.block)?void 0:n.end].filter(Boolean)})).join("|")+")\\s*"+r+")"})).join("|");return new RegExp("^\\s*(?:"+n+")\\s*$")}function b(e,t){var n=e.replace(/\n$/,""),o=t.language,r=t.magicComments,a=t.metastring;if(a&&v.test(a)){var c=a.match(v).groups.range;if(0===r.length)throw new Error("A highlight range has been given in code block's metastring (``` "+a+"), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.");var s=r[0].className,l=f()(c).filter((function(e){return e>0})).map((function(e){return[e-1,[s]]}));return{lineClassNames:Object.fromEntries(l),code:n}}if(void 0===o)return{lineClassNames:{},code:n};for(var i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return h(["js","jsBlock"],t);case"jsx":case"tsx":return h(["js","jsBlock","jsx"],t);case"html":return h(["js","jsBlock","html"],t);case"python":case"py":case"bash":return h(["bash"],t);case"markdown":case"md":return h(["html","jsx","bash"],t);default:return h(Object.keys(y),t)}}(o,r),u=n.split("\n"),p=Object.fromEntries(r.map((function(e){return[e.className,{start:0,range:""}]}))),d=Object.fromEntries(r.filter((function(e){return e.line})).map((function(e){var t=e.className;return[e.line,t]}))),m=Object.fromEntries(r.filter((function(e){return e.block})).map((function(e){var t=e.className;return[e.block.start,t]}))),g=Object.fromEntries(r.filter((function(e){return e.block})).map((function(e){var t=e.className;return[e.block.end,t]}))),b=0;b0&&e[n-1]===t?e:e.concat(t)};function P(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(n[o]=e[o]);return n}var W=function(e){function t(){for(var t=this,n=[],o=arguments.length;o--;)n[o]=arguments[o];e.apply(this,n),x(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?function(e,t){var n=e.plain,o=Object.create(null),r=e.styles.reduce((function(e,n){var o=n.languages,r=n.style;return o&&!o.includes(t)||n.types.forEach((function(t){var n=_({},e[t],r);e[t]=n})),e}),o);return r.root=n,r.plain=_({},n,{backgroundColor:null}),r}(e.theme,e.language):void 0;return t.themeDict=n})),x(this,"getLineProps",(function(e){var n=e.key,o=e.className,r=e.style,a=_({},P(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),c=t.getThemeDict(t.props);return void 0!==c&&(a.style=c.plain),void 0!==r&&(a.style=void 0!==a.style?_({},a.style,r):r),void 0!==n&&(a.key=n),o&&(a.className+=" "+o),a})),x(this,"getStyleForToken",(function(e){var n=e.types,o=e.empty,r=n.length,a=t.getThemeDict(t.props);if(void 0!==a){if(1===r&&"plain"===n[0])return o?{display:"inline-block"}:void 0;if(1===r&&!o)return a[n[0]];var c=o?{display:"inline-block"}:{},s=n.map((function(e){return a[e]}));return Object.assign.apply(Object,[c].concat(s))}})),x(this,"getTokenProps",(function(e){var n=e.key,o=e.className,r=e.style,a=e.token,c=_({},P(e,["key","className","style","token"]),{className:"token "+a.types.join(" "),children:a.content,style:t.getStyleForToken(a),key:void 0});return void 0!==r&&(c.style=void 0!==c.style?_({},c.style,r):r),void 0!==n&&(c.key=n),o&&(c.className+=" "+o),c})),x(this,"tokenize",(function(e,t,n,o){var r={code:t,grammar:n,language:o,tokens:[]};e.hooks.run("before-tokenize",r);var a=r.tokens=e.tokenize(r.code,r.grammar,r.language);return e.hooks.run("after-tokenize",r),a}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,o=e.code,r=e.children,a=this.getThemeDict(this.props),c=t.languages[n];return r({tokens:function(e){for(var t=[[]],n=[e],o=[0],r=[e.length],a=0,c=0,s=[],l=[s];c>-1;){for(;(a=o[c]++)0?u:["plain"],i=p):(u=I(u,p.type),p.alias&&(u=I(u,p.alias)),i=p.content),"string"==typeof i){var d=i.split(O),m=d.length;s.push({types:u,content:d[0]});for(var f=1;f0&&c.getRangeAt(0);o.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;var l=!1;try{l=document.execCommand("copy")}catch(i){}r.remove(),s&&(c.removeAllRanges(),c.addRange(s)),a&&a.focus()}(t),c(!0),l.current=window.setTimeout((function(){c(!1)}),1e3)}),[t]);return(0,a.useEffect)((function(){return function(){return window.clearTimeout(l.current)}}),[]),a.createElement("button",{type:"button","aria-label":r?(0,R.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,R.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,R.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,s.A)("clean-btn",n,M.copyButton,r&&M.copyButtonCopied),onClick:i},a.createElement("span",{className:M.copyButtonIcons,"aria-hidden":"true"},a.createElement("svg",{className:M.copyButtonIcon,viewBox:"0 0 24 24"},a.createElement("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})),a.createElement("svg",{className:M.copyButtonSuccessIcon,viewBox:"0 0 24 24"},a.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))}const F={wordWrapButtonIcon:"wordWrapButtonIcon_TyEO",wordWrapButtonEnabled:"wordWrapButtonEnabled_xdhj"};function G(e){var t=e.className,n=e.onClick,o=e.isEnabled,r=(0,R.T)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return a.createElement("button",{type:"button",onClick:n,className:(0,s.A)("clean-btn",t,o&&F.wordWrapButtonEnabled),"aria-label":r,title:r},a.createElement("svg",{className:F.wordWrapButtonIcon,viewBox:"0 0 24 24","aria-hidden":"true"},a.createElement("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})))}function q(e){var t,n,r,c,l,p,d,m,f,v,y,h=e.children,k=e.className,E=void 0===k?"":k,C=e.metastring,w=e.title,L=e.showLineNumbers,A=e.language,x=(0,i.p)().prism,_=x.defaultLanguage,O=x.magicComments,S=null!=(t=null!=A?A:null==(n=E.split(" ").find((function(e){return e.startsWith("language-")})))?void 0:n.replace(/language-/,""))?t:_,I=u(),P=(r=(0,a.useState)(!1),c=r[0],l=r[1],p=(0,a.useState)(!1),d=p[0],m=p[1],f=(0,a.useRef)(null),v=(0,a.useCallback)((function(){var e=f.current.querySelector("code");c?e.removeAttribute("style"):(e.style.whiteSpace="pre-wrap",e.style.overflowWrap="anywhere"),l((function(e){return!e}))}),[f,c]),y=(0,a.useCallback)((function(){var e=f.current,t=e.scrollWidth>e.clientWidth||f.current.querySelector("code").hasAttribute("style");m(t)}),[f]),j(f,y),(0,a.useEffect)((function(){y()}),[c,y]),(0,a.useEffect)((function(){return window.addEventListener("resize",y,{passive:!0}),function(){window.removeEventListener("resize",y)}}),[y]),{codeBlockRef:f,isEnabled:c,isCodeScrollable:d,toggle:v}),W=function(e){var t,n;return null!=(t=null==e||null==(n=e.match(g))?void 0:n.groups.title)?t:""}(C)||w,D=b(h,{metastring:C,language:S,magicComments:O}),R=D.lineClassNames,M=D.code,F=null!=L?L:function(e){return Boolean(null==e?void 0:e.includes("showLineNumbers"))}(C);return a.createElement(B,{as:"div",className:(0,s.A)(E,S&&!E.includes("language-"+S)&&"language-"+S)},W&&a.createElement("div",{className:N.codeBlockTitle},W),a.createElement("div",{className:N.codeBlockContent},a.createElement(z,(0,o.A)({},T,{theme:I,code:M,language:null!=S?S:"text"}),(function(e){var t=e.className,n=e.tokens,o=e.getLineProps,r=e.getTokenProps;return a.createElement("pre",{tabIndex:0,ref:P.codeBlockRef,className:(0,s.A)(t,N.codeBlock,"thin-scrollbar")},a.createElement("code",{className:(0,s.A)(N.codeBlockLines,F&&N.codeBlockLinesWithNumbering)},n.map((function(e,t){return a.createElement(H,{key:t,line:e,getLineProps:o,getTokenProps:r,classNames:R[t],showLineNumbers:F})}))))})),a.createElement("div",{className:N.buttonGroup},(P.isEnabled||P.isCodeScrollable)&&a.createElement(G,{className:N.codeButton,onClick:function(){return P.toggle()},isEnabled:P.isEnabled}),a.createElement(V,{className:N.codeButton,code:M}))))}var Z=["children"];function $(e){var t=e.children,n=(0,r.A)(e,Z),s=(0,c.A)(),l=function(e){return a.Children.toArray(e).some((function(e){return(0,a.isValidElement)(e)}))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof l?q:C;return a.createElement(i,(0,o.A)({key:String(s)},n),l)}},29350:(e,t)=>{function n(e){let t,n=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))n.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,r,a]=t;if(o&&a){o=parseInt(o),a=parseInt(a);const e=o{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(r),f=o,v=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return r?n.createElement(v,l(l({ref:t},u),{},{components:r})):n.createElement(v,l({ref:t},u))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>v,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.20-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.20-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function v(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/resolvednode"},"node"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/336ac60a.7c40e955.js b/assets/js/336ac60a.7c40e955.js new file mode 100644 index 0000000000..1bb27c0cc4 --- /dev/null +++ b/assets/js/336ac60a.7c40e955.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8564],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(t),f=o,y=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return t?n.createElement(y,l(l({ref:r},u),{},{components:t})):n.createElement(y,l({ref:r},u))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.20-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.20-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/resolvednode"},"node"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/336b3993.072dfc74.js b/assets/js/336b3993.072dfc74.js new file mode 100644 index 0000000000..a144f0c4f2 --- /dev/null +++ b/assets/js/336b3993.072dfc74.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4345],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),g=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},y=function(e){var t=g(e.components);return r.createElement(i.Provider,{value:t},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=g(n),u=a,m=c["".concat(i,".").concat(u)]||c[u]||d[u]||l;return n?r.createElement(m,o(o({ref:t},y),{},{components:n})):r.createElement(m,o({ref:t},y))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,o=new Array(l);o[0]=u;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>g,toc:()=>c});var r=n(37782),a=n(32345),l=(n(67308),n(62757)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",g={unversionedId:"api/jsobjectsscope",id:"version-1.0.28-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.28-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"text",id:"text",level:2}],d={toc:c},u="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,o);return(0,l.yg)(u,(0,r.A)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/336b3993.0e160c8c.js b/assets/js/336b3993.0e160c8c.js deleted file mode 100644 index 5cc1135222..0000000000 --- a/assets/js/336b3993.0e160c8c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8666],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(73268),a=n(68039),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.28-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.28-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/337a97bf.81b52b17.js b/assets/js/337a97bf.81b52b17.js deleted file mode 100644 index 73245e1c9b..0000000000 --- a/assets/js/337a97bf.81b52b17.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2206],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(r),v=a,f=u["".concat(p,".").concat(v)]||u[v]||d[v]||o;return r?n.createElement(f,i(i({ref:t},s),{},{components:r})):n.createElement(f,i({ref:t},s))}));function f(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=v;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),i=["components"],l={hide_table_of_contents:!0},p="validateDivisor",c={unversionedId:"api/validatedivisor",id:"version-1.0.26-alpha/api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/1.0.26-alpha/api/validatedivisor",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},v="wrapper";function f(e){var t=e.components,r=(0,a.Z)(e,i);return(0,o.kt)(v,(0,n.Z)({},d,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatedivisor"},"validateDivisor"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/validatedivisor"},"%"))),(0,o.kt)("h2",{id:"string"},"string"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/337a97bf.b9f4c065.js b/assets/js/337a97bf.b9f4c065.js new file mode 100644 index 0000000000..6d81ee9110 --- /dev/null +++ b/assets/js/337a97bf.b9f4c065.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5313],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>f});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):i(i({},r),e)),t},s=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},v=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(t),v=a,f=u["".concat(p,".").concat(v)]||u[v]||d[v]||o;return t?n.createElement(f,i(i({ref:r},s),{},{components:t})):n.createElement(f,i({ref:r},s))}));function f(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=v;var l={};for(var p in r)hasOwnProperty.call(r,p)&&(l[p]=r[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var c=2;c{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),i=["components"],l={hide_table_of_contents:!0},p="validateDivisor",c={unversionedId:"api/validatedivisor",id:"version-1.0.26-alpha/api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/1.0.26-alpha/api/validatedivisor",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},v="wrapper";function f(e){var r=e.components,t=(0,a.A)(e,i);return(0,o.yg)(v,(0,n.A)({},d,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"validatedivisor"},"validateDivisor"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/validatedivisor"},"%"))),(0,o.yg)("h2",{id:"string"},"string"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/339d3c17.6bcd6eda.js b/assets/js/339d3c17.6bcd6eda.js deleted file mode 100644 index b9cd509e39..0000000000 --- a/assets/js/339d3c17.6bcd6eda.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4597],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(73268),a=n(68039),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.21-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.21-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/339d3c17.bb0c1194.js b/assets/js/339d3c17.bb0c1194.js new file mode 100644 index 0000000000..f49185a045 --- /dev/null +++ b/assets/js/339d3c17.bb0c1194.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5456],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),g=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},y=function(e){var t=g(e.components);return r.createElement(i.Provider,{value:t},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=g(n),u=a,m=c["".concat(i,".").concat(u)]||c[u]||d[u]||l;return n?r.createElement(m,o(o({ref:t},y),{},{components:n})):r.createElement(m,o({ref:t},y))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,o=new Array(l);o[0]=u;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>g,toc:()=>c});var r=n(37782),a=n(32345),l=(n(67308),n(62757)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",g={unversionedId:"api/jsobjectsscope",id:"version-1.0.21-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.21-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"text",id:"text",level:2}],d={toc:c},u="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,o);return(0,l.yg)(u,(0,r.A)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/33fa3649.d23e08d7.js b/assets/js/33fa3649.8d553d5e.js similarity index 62% rename from assets/js/33fa3649.d23e08d7.js rename to assets/js/33fa3649.8d553d5e.js index 3738fb4c86..4c1c322bd5 100644 --- a/assets/js/33fa3649.d23e08d7.js +++ b/assets/js/33fa3649.8d553d5e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4378],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.24-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.24-alpha/api/type",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8592],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),y=c(r),f=o,d=y["".concat(l,".").concat(f)]||y[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[y]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>y});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.24-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.24-alpha/api/type",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],s={toc:y},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,p);return(0,a.yg)(f,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"type"},"type"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.yg)("hr",null),(0,a.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.yg)("h1",{id:"type-1"},"Type"),(0,a.yg)("h2",{id:"text-1"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3437bd2a.15c67251.js b/assets/js/3437bd2a.15c67251.js deleted file mode 100644 index f1c677b17a..0000000000 --- a/assets/js/3437bd2a.15c67251.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8810],{57522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d=a.createContext({}),m=function(t){var e=a.useContext(d),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(d.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,o=p(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(d,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var p={};for(var d in e)hasOwnProperty.call(e,d)&&(p[d]=e[d]);p.originalType=t,p[k]="string"==typeof t?t:r,i[1]=p;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>g,frontMatter:()=>p,metadata:()=>m,toc:()=>k});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.22-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.22-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.22-alpha/api/keywords",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.22-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.22-alpha/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3437bd2a.9ae1f10f.js b/assets/js/3437bd2a.9ae1f10f.js new file mode 100644 index 0000000000..d47576e4d7 --- /dev/null +++ b/assets/js/3437bd2a.9ae1f10f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7217],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>N});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):g(g({},t),e)),n},y=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},m="mdxType",o={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,p=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),m=d(n),u=r,N=m["".concat(p,".").concat(u)]||m[u]||o[u]||l;return n?a.createElement(N,g(g({ref:t},y),{},{components:n})):a.createElement(N,g({ref:t},y))}));function N(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,g=new Array(l);g[0]=u;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[m]="string"==typeof e?e:r,g[1]=i;for(var d=2;d{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>p,default:()=>N,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),g=["components"],i={hide_table_of_contents:!0},p="Keywords",d={unversionedId:"api/keywords",id:"version-1.0.22-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.22-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.22-alpha/api/keywords",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.22-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.22-alpha/api/operators"}},y={},m=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],o={toc:m},u="wrapper";function N(e){var t=e.components,n=(0,r.A)(e,g);return(0,l.yg)(u,(0,a.A)({},o,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"keywords"},"Keywords"),(0,l.yg)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))),(0,l.yg)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))),(0,l.yg)("h2",{id:"validationscope"},"validationScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/35c73967.6f57f850.js b/assets/js/35c73967.38852448.js similarity index 98% rename from assets/js/35c73967.6f57f850.js rename to assets/js/35c73967.38852448.js index 52691a78d4..f53d441e73 100644 --- a/assets/js/35c73967.6f57f850.js +++ b/assets/js/35c73967.38852448.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6927],{80971:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.26-alpha","label":"1.0.26-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.26-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.26-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.26-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.26-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.26-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.26-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5300],{49880:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.26-alpha","label":"1.0.26-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.26-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.26-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.26-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.26-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.26-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.26-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/36a3925a.a094a673.js b/assets/js/36a3925a.a094a673.js deleted file mode 100644 index f01521b12a..0000000000 --- a/assets/js/36a3925a.a094a673.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1405],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.26-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.26-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/36a3925a.e0f60991.js b/assets/js/36a3925a.e0f60991.js new file mode 100644 index 0000000000..9496da8eb7 --- /dev/null +++ b/assets/js/36a3925a.e0f60991.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[415],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=n.createContext({}),c=function(e){var r=n.useContext(l),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(l.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(t),y=o,g=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return t?n.createElement(g,p(p({ref:r},u),{},{components:t})):n.createElement(g,p({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=y;var i={};for(var l in r)hasOwnProperty.call(r,l)&&(i[l]=r[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>l,default:()=>g,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.26-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.26-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/parseconfigtuple"},":"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["type", ":", config]')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3706.92d5cb8c.js b/assets/js/3706.92d5cb8c.js new file mode 100644 index 0000000000..747e283706 --- /dev/null +++ b/assets/js/3706.92d5cb8c.js @@ -0,0 +1,74 @@ +(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3706],{91205:(t,e,n)=>{"use strict";var r=n(75792);e.A=void 0;var o=r(n(10371)),i=n(38e3),a=(0,o.default)((0,i.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");e.A=a},13749:(t,e,n)=>{"use strict";var r=n(75792);e.A=void 0;var o=r(n(10371)),i=n(38e3),a=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");e.A=a},10371:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(47371)},11320:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>w});var r=n(32345),o=n(37782),i=n(98345),a=n(39190),s=n(76948),u=n(81552),l=n(82562),c=n(81781),d=n(95411),p=n(56297),f=n(35284),v=n(67308),h=n(1727);function m(t){return(0,h.Ay)("MuiMasonry",t)}(0,n(61755).A)("MuiMasonry",["root"]);var g=n(38e3);const y=["children","className","component","columns","spacing","defaultColumns","defaultHeight","defaultSpacing"],b=t=>Number(t.replace("px","")),x={flexBasis:"100%",width:0,margin:0,padding:0},A=(0,s.Ay)("div",{name:"MuiMasonry",slot:"Root",overridesResolver:(t,e)=>[e.root]})((({ownerState:t,theme:e})=>{let n={width:"100%",display:"flex",flexFlow:"column wrap",alignContent:"flex-start",boxSizing:"border-box","& > *":{boxSizing:"border-box"}};const r={};if(t.isSSR){const i={},a=b(e.spacing(t.defaultSpacing));for(let e=1;e<=t.defaultColumns;e+=1)i[`&:nth-of-type(${t.defaultColumns}n+${e%t.defaultColumns})`]={order:e};return r.height=t.defaultHeight,r.margin=-a/2,r["& > *"]=(0,o.A)({},n["& > *"],i,{margin:a/2,width:`calc(${(100/t.defaultColumns).toFixed(2)}% - ${a}px)`}),(0,o.A)({},n,r)}const i=(0,l.kW)({values:t.spacing,breakpoints:e.breakpoints.values}),a=(0,c.LX)(e);n=(0,d.A)(n,(0,l.NI)({theme:e},i,(e=>{let n;if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e){const t=Number(e);n=(0,c._W)(a,t)}else n=e;return(0,o.A)({margin:`calc(0px - (${n} / 2))`,"& > *":{margin:`calc(${n} / 2)`}},t.maxColumnHeight&&{height:"number"==typeof n?Math.ceil(t.maxColumnHeight+b(n)):`calc(${t.maxColumnHeight}px + ${n})`})})));const s=(0,l.kW)({values:t.columns,breakpoints:e.breakpoints.values});return n=(0,d.A)(n,(0,l.NI)({theme:e},s,(t=>({"& > *":{width:`calc(${`${(100/Number(t)).toFixed(2)}%`} - ${"string"==typeof i&&!Number.isNaN(Number(i))||"number"==typeof i?(0,c._W)(a,Number(i)):"0px"})`}})))),"object"==typeof i&&(n=(0,d.A)(n,(0,l.NI)({theme:e},i,((t,e)=>{if(e){const n=Number(t),r=Object.keys(s).pop(),o=(0,c._W)(a,n);return{"& > *":{width:`calc(${`${(100/("object"==typeof s?s[e]||s[r]:s)).toFixed(2)}%`} - ${o})`}}}return null})))),n})),w=v.forwardRef((function(t,e){const n=(0,u.A)({props:t,name:"MuiMasonry"}),{children:s,className:l,component:c="div",columns:d=4,spacing:h=1,defaultColumns:w,defaultHeight:S,defaultSpacing:E}=n,C=(0,r.A)(n,y),T=v.useRef(),[V,M]=v.useState(),P=!V&&S&&void 0!==w&&void 0!==E,[R,k]=v.useState(P?w-1:0),L=(0,o.A)({},n,{spacing:h,columns:d,maxColumnHeight:V,defaultColumns:w,defaultHeight:S,defaultSpacing:E,isSSR:P}),j=(t=>{const{classes:e}=t;return(0,i.A)({root:["root"]},m,e)})(L),O=v.useRef("undefined"==typeof ResizeObserver?void 0:new ResizeObserver((t=>{if(!T.current||!t||0===t.length)return;const e=T.current,n=T.current.firstChild,r=e.clientWidth,o=n.clientWidth;if(0===r||0===o)return;const i=window.getComputedStyle(n),s=b(i.marginLeft),u=b(i.marginRight),l=Math.round(r/(o+s+u)),c=new Array(l).fill(0);let d=!1;e.childNodes.forEach((t=>{if(t.nodeType!==Node.ELEMENT_NODE||"line-break"===t.dataset.class||d)return;const e=window.getComputedStyle(t),n=b(e.marginTop),r=b(e.marginBottom),o=b(e.height)?Math.ceil(b(e.height))+n+r:0;if(0!==o){for(let e=0;e{M(Math.max(...c)),k(l>0?l-1:0)}))})));v.useEffect((()=>{const t=O.current;if(void 0!==t)return T.current&&T.current.childNodes.forEach((e=>{t.observe(e)})),()=>t?t.disconnect():{}}),[d,h,s]);const z=(0,p.A)(e,T),I=new Array(R).fill("").map(((t,e)=>(0,g.jsx)("span",{"data-class":"line-break",style:(0,o.A)({},x,{order:e+1})},e)));return(0,g.jsxs)(A,(0,o.A)({as:c,className:(0,f.A)(j.root,l),ref:z,ownerState:L},C,{children:[s,I]}))}))},46585:(t,e,n)=>{"use strict";n.d(e,{A:()=>et});var r=n(32345),o=n(37782),i=n(67308),a=n(35284),s=n(39129),u=n(98345),l=n(61247),c=n(76948),d=n(81552),p=n(19199),f=n(40193),v=n(12464);var h=n(95817);const m=i.createContext(null);function g(t,e){var n=Object.create(null);return t&&i.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,i.isValidElement)(t)?e(t):t}(t)})),n}function y(t,e,n){return null!=n[e]?n[e]:t.props[e]}function b(t,e,n){var r=g(t.children),o=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in e){if(o[u])for(r=0;r{if(!l&&null!=c){const t=setTimeout(c,d);return()=>{clearTimeout(t)}}}),[c,l,d]),(0,E.jsx)("span",{className:v,style:h,children:(0,E.jsx)("span",{className:m})})};var T=n(61755);const V=(0,T.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),M=["center","classes","className"];let P,R,k,L,j=t=>t;const O=(0,S.i7)(P||(P=j` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),z=(0,S.i7)(R||(R=j` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),I=(0,S.i7)(k||(k=j` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),D=(0,c.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),B=(0,c.Ay)(C,{name:"MuiTouchRipple",slot:"Ripple"})(L||(L=j` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),V.rippleVisible,O,550,(({theme:t})=>t.transitions.easing.easeInOut),V.ripplePulsate,(({theme:t})=>t.transitions.duration.shorter),V.child,V.childLeaving,z,550,(({theme:t})=>t.transitions.easing.easeInOut),V.childPulsate,I,(({theme:t})=>t.transitions.easing.easeInOut)),F=i.forwardRef((function(t,e){const n=(0,d.A)({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:u={},className:l}=n,c=(0,r.A)(n,M),[p,f]=i.useState([]),v=i.useRef(0),h=i.useRef(null);i.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[p]);const m=i.useRef(!1),g=i.useRef(null),y=i.useRef(null),b=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(g.current)}),[]);const x=i.useCallback((t=>{const{pulsate:e,rippleX:n,rippleY:r,rippleSize:o,cb:i}=t;f((t=>[...t,(0,E.jsx)(B,{classes:{ripple:(0,a.A)(u.ripple,V.ripple),rippleVisible:(0,a.A)(u.rippleVisible,V.rippleVisible),ripplePulsate:(0,a.A)(u.ripplePulsate,V.ripplePulsate),child:(0,a.A)(u.child,V.child),childLeaving:(0,a.A)(u.childLeaving,V.childLeaving),childPulsate:(0,a.A)(u.childPulsate,V.childPulsate)},timeout:550,pulsate:e,rippleX:n,rippleY:r,rippleSize:o},v.current)])),v.current+=1,h.current=i}),[u]),A=i.useCallback(((t={},e={},n=(()=>{}))=>{const{pulsate:r=!1,center:o=s||e.pulsate,fakeElement:i=!1}=e;if("mousedown"===(null==t?void 0:t.type)&&m.current)return void(m.current=!1);"touchstart"===(null==t?void 0:t.type)&&(m.current=!0);const a=i?null:b.current,u=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,c,d;if(o||void 0===t||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)l=Math.round(u.width/2),c=Math.round(u.height/2);else{const{clientX:e,clientY:n}=t.touches&&t.touches.length>0?t.touches[0]:t;l=Math.round(e-u.left),c=Math.round(n-u.top)}if(o)d=Math.sqrt((2*u.width**2+u.height**2)/3),d%2==0&&(d+=1);else{const t=2*Math.max(Math.abs((a?a.clientWidth:0)-l),l)+2,e=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;d=Math.sqrt(t**2+e**2)}null!=t&&t.touches?null===y.current&&(y.current=()=>{x({pulsate:r,rippleX:l,rippleY:c,rippleSize:d,cb:n})},g.current=setTimeout((()=>{y.current&&(y.current(),y.current=null)}),80)):x({pulsate:r,rippleX:l,rippleY:c,rippleSize:d,cb:n})}),[s,x]),S=i.useCallback((()=>{A({},{pulsate:!0})}),[A]),C=i.useCallback(((t,e)=>{if(clearTimeout(g.current),"touchend"===(null==t?void 0:t.type)&&y.current)return y.current(),y.current=null,void(g.current=setTimeout((()=>{C(t,e)})));y.current=null,f((t=>t.length>0?t.slice(1):t)),h.current=e}),[]);return i.useImperativeHandle(e,(()=>({pulsate:S,start:A,stop:C})),[S,A,C]),(0,E.jsx)(D,(0,o.A)({className:(0,a.A)(V.root,u.root,l),ref:b},c,{children:(0,E.jsx)(w,{component:null,exit:!0,children:p})}))}));var N=n(1727);function $(t){return(0,N.Ay)("MuiButtonBase",t)}const U=(0,T.A)("MuiButtonBase",["root","disabled","focusVisible"]),W=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],X=(0,c.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${U.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),q=i.forwardRef((function(t,e){const n=(0,d.A)({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:l=!1,children:c,className:h,component:m="button",disabled:g=!1,disableRipple:y=!1,disableTouchRipple:b=!1,focusRipple:x=!1,LinkComponent:A="a",onBlur:w,onClick:S,onContextMenu:C,onDragLeave:T,onFocus:V,onFocusVisible:M,onKeyDown:P,onKeyUp:R,onMouseDown:k,onMouseLeave:L,onMouseUp:j,onTouchEnd:O,onTouchMove:z,onTouchStart:I,tabIndex:D=0,TouchRippleProps:B,touchRippleRef:N,type:U}=n,q=(0,r.A)(n,W),H=i.useRef(null),K=i.useRef(null),Y=(0,p.A)(K,N),{isFocusVisibleRef:_,onFocus:G,onBlur:Z,ref:J}=(0,v.A)(),[Q,tt]=i.useState(!1);g&&Q&&tt(!1),i.useImperativeHandle(s,(()=>({focusVisible:()=>{tt(!0),H.current.focus()}})),[]);const[et,nt]=i.useState(!1);i.useEffect((()=>{nt(!0)}),[]);const rt=et&&!y&&!g;function ot(t,e,n=b){return(0,f.A)((r=>{e&&e(r);return!n&&K.current&&K.current[t](r),!0}))}i.useEffect((()=>{Q&&x&&!y&&et&&K.current.pulsate()}),[y,x,Q,et]);const it=ot("start",k),at=ot("stop",C),st=ot("stop",T),ut=ot("stop",j),lt=ot("stop",(t=>{Q&&t.preventDefault(),L&&L(t)})),ct=ot("start",I),dt=ot("stop",O),pt=ot("stop",z),ft=ot("stop",(t=>{Z(t),!1===_.current&&tt(!1),w&&w(t)}),!1),vt=(0,f.A)((t=>{H.current||(H.current=t.currentTarget),G(t),!0===_.current&&(tt(!0),M&&M(t)),V&&V(t)})),ht=()=>{const t=H.current;return m&&"button"!==m&&!("A"===t.tagName&&t.href)},mt=i.useRef(!1),gt=(0,f.A)((t=>{x&&!mt.current&&Q&&K.current&&" "===t.key&&(mt.current=!0,K.current.stop(t,(()=>{K.current.start(t)}))),t.target===t.currentTarget&&ht()&&" "===t.key&&t.preventDefault(),P&&P(t),t.target===t.currentTarget&&ht()&&"Enter"===t.key&&!g&&(t.preventDefault(),S&&S(t))})),yt=(0,f.A)((t=>{x&&" "===t.key&&K.current&&Q&&!t.defaultPrevented&&(mt.current=!1,K.current.stop(t,(()=>{K.current.pulsate(t)}))),R&&R(t),S&&t.target===t.currentTarget&&ht()&&" "===t.key&&!t.defaultPrevented&&S(t)}));let bt=m;"button"===bt&&(q.href||q.to)&&(bt=A);const xt={};"button"===bt?(xt.type=void 0===U?"button":U,xt.disabled=g):(q.href||q.to||(xt.role="button"),g&&(xt["aria-disabled"]=g));const At=(0,p.A)(e,J,H);const wt=(0,o.A)({},n,{centerRipple:l,component:m,disabled:g,disableRipple:y,disableTouchRipple:b,focusRipple:x,tabIndex:D,focusVisible:Q}),St=(t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,i={root:["root",e&&"disabled",n&&"focusVisible"]},a=(0,u.A)(i,$,o);return n&&r&&(a.root+=` ${r}`),a})(wt);return(0,E.jsxs)(X,(0,o.A)({as:bt,className:(0,a.A)(St.root,h),ownerState:wt,onBlur:ft,onClick:S,onContextMenu:at,onFocus:vt,onKeyDown:gt,onKeyUp:yt,onMouseDown:it,onMouseLeave:lt,onMouseUp:ut,onDragLeave:st,onTouchEnd:dt,onTouchMove:pt,onTouchStart:ct,ref:At,tabIndex:g?-1:D,type:U},xt,q,{children:[c,rt?(0,E.jsx)(F,(0,o.A)({ref:Y,center:l},B)):null]}))}));var H=n(47589);function K(t){return(0,N.Ay)("MuiButton",t)}const Y=(0,T.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const _=i.createContext({}),G=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Z=t=>(0,o.A)({},"small"===t.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===t.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===t.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),J=(0,c.Ay)(q,{shouldForwardProp:t=>(0,c.ep)(t)||"classes"===t,name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${(0,H.A)(n.color)}`],e[`size${(0,H.A)(n.size)}`],e[`${n.variant}Size${(0,H.A)(n.size)}`],"inherit"===n.color&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})((({theme:t,ownerState:e})=>{var n,r;return(0,o.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,o.A)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===e.variant&&"inherit"!==e.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.X4)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===e.variant&&"inherit"!==e.color&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.X4)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===e.variant&&{backgroundColor:(t.vars||t).palette.grey.A100,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===e.variant&&"inherit"!==e.color&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":(0,o.A)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${Y.focusVisible}`]:(0,o.A)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${Y.disabled}`]:(0,o.A)({color:(t.vars||t).palette.action.disabled},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===e.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===e.variant&&{padding:"6px 8px"},"text"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main},"outlined"===e.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${(0,l.X4)(t.palette[e.color].main,.5)}`},"contained"===e.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(r=t.palette).getContrastText)?void 0:n.call(r,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],boxShadow:(t.vars||t).shadows[2]},"contained"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},"inherit"===e.color&&{color:"inherit",borderColor:"currentColor"},"small"===e.size&&"text"===e.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"text"===e.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"outlined"===e.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"outlined"===e.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"contained"===e.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"contained"===e.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})}),(({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Y.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Y.disabled}`]:{boxShadow:"none"}})),Q=(0,c.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${(0,H.A)(n.size)}`]]}})((({ownerState:t})=>(0,o.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Z(t)))),tt=(0,c.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${(0,H.A)(n.size)}`]]}})((({ownerState:t})=>(0,o.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Z(t)))),et=i.forwardRef((function(t,e){const n=i.useContext(_),l=(0,s.A)(n,t),c=(0,d.A)({props:l,name:"MuiButton"}),{children:p,color:f="primary",component:v="button",className:h,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:x,fullWidth:A=!1,size:w="medium",startIcon:S,type:C,variant:T="text"}=c,V=(0,r.A)(c,G),M=(0,o.A)({},c,{color:f,component:v,disabled:m,disableElevation:g,disableFocusRipple:y,fullWidth:A,size:w,type:C,variant:T}),P=(t=>{const{color:e,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=t,l={root:["root",a,`${a}${(0,H.A)(e)}`,`size${(0,H.A)(i)}`,`${a}Size${(0,H.A)(i)}`,"inherit"===e&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,H.A)(i)}`],endIcon:["endIcon",`iconSize${(0,H.A)(i)}`]},c=(0,u.A)(l,K,s);return(0,o.A)({},s,c)})(M),R=S&&(0,E.jsx)(Q,{className:P.startIcon,ownerState:M,children:S}),k=b&&(0,E.jsx)(tt,{className:P.endIcon,ownerState:M,children:b});return(0,E.jsxs)(J,(0,o.A)({ownerState:M,className:(0,a.A)(n.className,P.root,h),component:v,disabled:m,focusRipple:!y,focusVisibleClassName:(0,a.A)(P.focusVisible,x),ref:e,type:C},V,{classes:P,children:[R,p,k]}))}))},88591:(t,e,n)=>{"use strict";n.d(e,{A:()=>w});var r=n(37782),o=n(32345),i=n(67308),a=n(35284),s=n(98345),u=n(76948),l=n(81552),c=n(61247);const d=t=>{let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(e/100).toFixed(2)};var p=n(61755),f=n(1727);function v(t){return(0,f.Ay)("MuiPaper",t)}(0,p.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var h=n(38e3);const m=["className","component","elevation","square","variant"],g=(0,u.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e[`elevation${n.elevation}`]]}})((({theme:t,ownerState:e})=>{var n;return(0,r.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===e.variant&&(0,r.A)({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,c.X4)("#fff",d(e.elevation))}, ${(0,c.X4)("#fff",d(e.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[e.elevation]}))})),y=i.forwardRef((function(t,e){const n=(0,l.A)({props:t,name:"MuiPaper"}),{className:i,component:u="div",elevation:c=1,square:d=!1,variant:p="elevation"}=n,f=(0,o.A)(n,m),y=(0,r.A)({},n,{component:u,elevation:c,square:d,variant:p}),b=(t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.A)(i,v,o)})(y);return(0,h.jsx)(g,(0,r.A)({as:u,ownerState:y,className:(0,a.A)(b.root,i),ref:e},f))}));function b(t){return(0,f.Ay)("MuiCard",t)}(0,p.A)("MuiCard",["root"]);const x=["className","raised"],A=(0,u.Ay)(y,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})((()=>({overflow:"hidden"}))),w=i.forwardRef((function(t,e){const n=(0,l.A)({props:t,name:"MuiCard"}),{className:i,raised:u=!1}=n,c=(0,o.A)(n,x),d=(0,r.A)({},n,{raised:u}),p=(t=>{const{classes:e}=t;return(0,s.A)({root:["root"]},b,e)})(d);return(0,h.jsx)(A,(0,r.A)({className:(0,a.A)(p.root,i),elevation:u?8:void 0,ref:e,ownerState:d},c))}))},17164:(t,e,n)=>{"use strict";n.d(e,{A:()=>x});var r=n(32345),o=n(37782),i=n(67308),a=n(35284),s=n(58441),u=n(98345),l=n(76948),c=n(81552),d=n(47589),p=n(61755),f=n(1727);function v(t){return(0,f.Ay)("MuiTypography",t)}(0,p.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var h=n(38e3);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g=(0,l.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e[`align${(0,d.A)(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})((({theme:t,ownerState:e})=>(0,o.A)({margin:0},e.variant&&t.typography[e.variant],"inherit"!==e.align&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16}))),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=i.forwardRef((function(t,e){const n=(0,c.A)({props:t,name:"MuiTypography"}),i=(t=>b[t]||t)(n.color),l=(0,s.A)((0,o.A)({},n,{color:i})),{align:p="inherit",className:f,component:x,gutterBottom:A=!1,noWrap:w=!1,paragraph:S=!1,variant:E="body1",variantMapping:C=y}=l,T=(0,r.A)(l,m),V=(0,o.A)({},l,{align:p,color:i,className:f,component:x,gutterBottom:A,noWrap:w,paragraph:S,variant:E,variantMapping:C}),M=x||(S?"p":C[E]||y[E])||"span",P=(t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=t,s={root:["root",i,"inherit"!==t.align&&`align${(0,d.A)(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,u.A)(s,v,a)})(V);return(0,h.jsx)(g,(0,o.A)({as:M,ref:e,ownerState:V,className:(0,a.A)(P.root,f)},T))}))},52429:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(37782),o=n(91915);function i(t){return String(parseFloat(t)).length===String(t).length}function a(t){return parseFloat(t)}function s(t){return(e,n)=>{const r=String(e).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===n)return e;let o=a(e);"px"!==r&&("em"===r||"rem"===r)&&(o=a(e)*a(t));let i=o;if("px"!==n)if("em"===n)i=o/a(t);else{if("rem"!==n)return e;i=o/a(t)}return parseFloat(i.toFixed(5))+n}}function u({lineHeight:t,pixels:e,htmlFontSize:n}){return e/(t*n)}function l(t,e={}){const{breakpoints:n=["sm","md","lg"],disableAlign:a=!1,factor:l=2,variants:c=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=e,d=(0,r.A)({},t);d.typography=(0,r.A)({},d.typography);const p=d.typography,f=s(p.htmlFontSize),v=n.map((t=>d.breakpoints.values[t]));return c.forEach((t=>{const e=p[t],n=parseFloat(f(e.fontSize,"rem"));if(n<=1)return;const s=n,c=1+(s-1)/l;let{lineHeight:d}=e;if(!i(d)&&!a)throw new Error((0,o.A)(6));i(d)||(d=parseFloat(f(d,"rem"))/parseFloat(n));let h=null;a||(h=t=>function({size:t,grid:e}){const n=t-t%e,r=n+e;return t-n{let o=e+s*n;null!==i&&(o=i(o)),a[`@media (min-width:${n}px)`]={[t]:`${Math.round(1e4*o)/1e4}${r}`}})),a}({cssProperty:"fontSize",min:c,max:s,unit:"rem",breakpoints:v,transform:h}))})),d}},94922:(t,e,n)=>{"use strict";var r;n.d(e,{A:()=>d});var o=n(67308),i=n(89705),a=n(12150),s=n(71255);function u(t,e,n,r,i){const[a,u]=o.useState((()=>i&&n?n(t).matches:r?r(t).matches:e));return(0,s.A)((()=>{let e=!0;if(!n)return;const r=n(t),o=()=>{e&&u(r.matches)};return o(),r.addListener(o),()=>{e=!1,r.removeListener(o)}}),[t,n]),a}const l=(r||(r=n.t(o,2))).useSyncExternalStore;function c(t,e,n,r,i){const a=o.useCallback((()=>e),[e]),s=o.useMemo((()=>{if(i&&n)return()=>n(t).matches;if(null!==r){const{matches:e}=r(t);return()=>e}return a}),[a,t,r,i,n]),[u,c]=o.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[a,n,t]);return l(c,u,s)}function d(t,e={}){const n=(0,i.A)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:s=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:p=!1}=(0,a.A)({name:"MuiUseMediaQuery",props:e,theme:n});let f="function"==typeof t?t(n):t;f=f.replace(/^@media( ?)/m,"");return(void 0!==l?c:u)(f,o,s,d,p)}},47371:(t,e,n)=>{"use strict";n.r(e),n.d(e,{capitalize:()=>o.A,createChainedFunction:()=>i,createSvgIcon:()=>w,debounce:()=>S,deprecatedPropType:()=>E,isMuiElement:()=>C,ownerDocument:()=>V,ownerWindow:()=>M,requirePropFactory:()=>P,setRef:()=>R,unstable_ClassNameGenerator:()=>N,unstable_useEnhancedEffect:()=>k.A,unstable_useId:()=>O,unsupportedProp:()=>z,useControlled:()=>I,useEventCallback:()=>D.A,useForkRef:()=>B.A,useIsFocusVisible:()=>F.A});var r=n(70381),o=n(47589);const i=function(...t){return t.reduce(((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)}),(()=>{}))};var a=n(37782),s=n(67308),u=n.t(s,2),l=n(32345),c=n(35284),d=n(98345),p=n(81552),f=n(76948),v=n(61755),h=n(1727);function m(t){return(0,h.Ay)("MuiSvgIcon",t)}(0,v.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var g=n(38e3);const y=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=(0,f.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${(0,o.A)(n.color)}`],e[`fontSize${(0,o.A)(n.fontSize)}`]]}})((({theme:t,ownerState:e})=>{var n,r,o,i,a,s,u,l,c,d,p,f,v,h,m,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=t.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(u=t.typography)||null==(l=u.pxToRem)?void 0:l.call(u,24))||"1.5rem",large:(null==(c=t.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[e.fontSize],color:null!=(p=null==(f=(t.vars||t).palette)||null==(v=f[e.color])?void 0:v.main)?p:{action:null==(h=(t.vars||t).palette)||null==(m=h.action)?void 0:m.active,disabled:null==(g=(t.vars||t).palette)||null==(y=g.action)?void 0:y.disabled,inherit:void 0}[e.color]}})),x=s.forwardRef((function(t,e){const n=(0,p.A)({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:s="inherit",component:u="svg",fontSize:f="medium",htmlColor:v,inheritViewBox:h=!1,titleAccess:x,viewBox:A="0 0 24 24"}=n,w=(0,l.A)(n,y),S=(0,a.A)({},n,{color:s,component:u,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:A}),E={};h||(E.viewBox=A);const C=(t=>{const{color:e,fontSize:n,classes:r}=t,i={root:["root","inherit"!==e&&`color${(0,o.A)(e)}`,`fontSize${(0,o.A)(n)}`]};return(0,d.A)(i,m,r)})(S);return(0,g.jsxs)(b,(0,a.A)({as:u,className:(0,c.A)(C.root,i),focusable:"false",color:v,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:e},E,w,{ownerState:S,children:[r,x?(0,g.jsx)("title",{children:x}):null]}))}));x.muiName="SvgIcon";const A=x;function w(t,e){function n(n,r){return(0,g.jsx)(A,(0,a.A)({"data-testid":`${e}Icon`,ref:r},n,{children:t}))}return n.muiName=A.muiName,s.memo(s.forwardRef(n))}const S=function(t,e=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{t.apply(this,r)}),e)}return r.clear=()=>{clearTimeout(n)},r};const E=function(t,e){return()=>null};const C=function(t,e){var n,r;return s.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)};function T(t){return t&&t.ownerDocument||document}const V=T;const M=function(t){return T(t).defaultView||window};const P=function(t,e){return()=>null};const R=n(54331).A;var k=n(71255);let L=0;const j=u["useId".toString()];const O=function(t){if(void 0!==j){const e=j();return null!=t?t:e}return function(t){const[e,n]=s.useState(t),r=t||e;return s.useEffect((()=>{null==e&&(L+=1,n(`mui-${L}`))}),[e]),r}(t)};const z=function(t,e,n,r,o){return null};const I=function({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=s.useRef(void 0!==t),[i,a]=s.useState(e);return[o?t:i,s.useCallback((t=>{o||a(t)}),[])]};var D=n(40193),B=n(19199),F=n(12464);const N={configure:t=>{r.A.configure(t)}}},71255:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(81871).A},40193:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(67308),o=n(81871);const i=function(t){const e=r.useRef(t);return(0,o.A)((()=>{e.current=t})),r.useRef(((...t)=>(0,e.current)(...t))).current}},19199:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(56297).A},12464:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(67308);class o{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new o}start(t,e){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,e()}),t)}}let i=!0,a=!1;const s=new o,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(t){t.metaKey||t.altKey||t.ctrlKey||(i=!0)}function c(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function p(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return i||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!u[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}const f=function(){const t=r.useCallback((t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",l,!0),e.addEventListener("mousedown",c,!0),e.addEventListener("pointerdown",c,!0),e.addEventListener("touchstart",c,!0),e.addEventListener("visibilitychange",d,!0))}),[]),e=r.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!p(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(a=!0,s.start(100,(()=>{a=!1})),e.current=!1,!0)},ref:t}}},34940:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var r=n(37782),o=n(67308);const i=o.createContext(null);function a(){return o.useContext(i)}const s="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var u=n(38e3);const l=function(t){const{children:e,theme:n}=t,l=a(),c=o.useMemo((()=>{const t=null===l?n:function(t,e){if("function"==typeof e)return e(t);return(0,r.A)({},t,e)}(l,n);return null!=t&&(t[s]=null!==l),t}),[n,l]);return(0,u.jsx)(i.Provider,{value:c,children:e})};var c=n(58138),d=n(89705),p=n(32345);const f=["value"],v=o.createContext();const h=function(t){let{value:e}=t,n=(0,p.A)(t,f);return(0,u.jsx)(v.Provider,(0,r.A)({value:null==e||e},n))},m={};function g(t,e,n,i=!1){return o.useMemo((()=>{const o=t&&e[t]||e;if("function"==typeof n){const a=n(o),s=t?(0,r.A)({},e,{[t]:a}):a;return i?()=>s:s}return t?(0,r.A)({},e,{[t]:n}):(0,r.A)({},e,n)}),[t,e,n,i])}const y=function(t){const{children:e,theme:n,themeId:r}=t,o=(0,d.A)(m),i=a()||m,s=g(r,o,n),p=g(r,i,n,!0),f="rtl"===s.direction;return(0,u.jsx)(l,{theme:p,children:(0,u.jsx)(c.T.Provider,{value:s,children:(0,u.jsx)(h,{value:f,children:e})})})}},54331:(t,e,n)=>{"use strict";function r(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,{A:()=>r})},81871:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(67308);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},56297:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(67308),o=n(54331);function i(...t){return r.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},81652:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(67308),o=n(35284);const i={tabItem:"tabItem_ydMX"};function a(t){var e=t.children,n=t.hidden,a=t.className;return r.createElement("div",{role:"tabpanel",className:(0,o.A)(i.tabItem,a),hidden:n},e)}},43934:(t,e,n)=>{"use strict";n.d(e,{A:()=>A});var r=n(37782),o=n(67308),i=n(35284),a=n(54796),s=n(29453),u=n(94665),l=n(69478),c=n(90406);function d(t){return function(t){var e,n;return null!=(e=null==(n=o.Children.map(t,(function(t){if(!t||(0,o.isValidElement)(t)&&(e=t.props)&&"object"==typeof e&&"value"in e)return t;var e;throw new Error("Docusaurus error: Bad child <"+("string"==typeof t.type?t.type:t.type.name)+'>: all children of the component should be , and every should have a unique "value" prop.')})))?void 0:n.filter(Boolean))?e:[]}(t).map((function(t){var e=t.props;return{value:e.value,label:e.label,attributes:e.attributes,default:e.default}}))}function p(t){var e=t.values,n=t.children;return(0,o.useMemo)((function(){var t=null!=e?e:d(n);return function(t){var e=(0,l.X)(t,(function(t,e){return t.value===e.value}));if(e.length>0)throw new Error('Docusaurus error: Duplicate values "'+e.map((function(t){return t.value})).join(", ")+'" found in . Every value needs to be unique.')}(t),t}),[e,n])}function f(t){var e=t.value;return t.tabValues.some((function(t){return t.value===e}))}function v(t){var e=t.queryString,n=void 0!==e&&e,r=t.groupId,i=(0,s.W6)(),a=function(t){var e=t.queryString,n=void 0!==e&&e,r=t.groupId;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!r)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return null!=r?r:null}({queryString:n,groupId:r});return[(0,u.aZ)(a),(0,o.useCallback)((function(t){if(a){var e=new URLSearchParams(i.location.search);e.set(a,t),i.replace(Object.assign({},i.location,{search:e.toString()}))}}),[a,i])]}function h(t){var e,n,r,i,a=t.defaultValue,s=t.queryString,u=void 0!==s&&s,l=t.groupId,d=p(t),h=(0,o.useState)((function(){return function(t){var e,n=t.defaultValue,r=t.tabValues;if(0===r.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!f({value:n,tabValues:r}))throw new Error('Docusaurus error: The has a defaultValue "'+n+'" but none of its children has the corresponding value. Available values are: '+r.map((function(t){return t.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");return n}var o=null!=(e=r.find((function(t){return t.default})))?e:r[0];if(!o)throw new Error("Unexpected error: 0 tabValues");return o.value}({defaultValue:a,tabValues:d})})),m=h[0],g=h[1],y=v({queryString:u,groupId:l}),b=y[0],x=y[1],A=(e=function(t){return t?"docusaurus.tab."+t:null}({groupId:l}.groupId),n=(0,c.Dv)(e),r=n[0],i=n[1],[r,(0,o.useCallback)((function(t){e&&i.set(t)}),[e,i])]),w=A[0],S=A[1],E=function(){var t=null!=b?b:w;return f({value:t,tabValues:d})?t:null}();return(0,o.useLayoutEffect)((function(){E&&g(E)}),[E]),{selectedValue:m,selectValue:(0,o.useCallback)((function(t){if(!f({value:t,tabValues:d}))throw new Error("Can't select invalid tab value="+t);g(t),x(t),S(t)}),[x,S,d]),tabValues:d}}var m=n(3681);const g={tabList:"tabList_d1Tg",tabItem:"tabItem_KvMm"};function y(t){var e=t.className,n=t.block,s=t.selectedValue,u=t.selectValue,l=t.tabValues,c=[],d=(0,a.a_)().blockElementScrollPositionUntilNextRender,p=function(t){var e=t.currentTarget,n=c.indexOf(e),r=l[n].value;r!==s&&(d(e),u(r))},f=function(t){var e,n=null;switch(t.key){case"Enter":p(t);break;case"ArrowRight":var r,o=c.indexOf(t.currentTarget)+1;n=null!=(r=c[o])?r:c[0];break;case"ArrowLeft":var i,a=c.indexOf(t.currentTarget)-1;n=null!=(i=c[a])?i:c[c.length-1]}null==(e=n)||e.focus()};return o.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.A)("tabs",{"tabs--block":n},e)},l.map((function(t){var e=t.value,n=t.label,a=t.attributes;return o.createElement("li",(0,r.A)({role:"tab",tabIndex:s===e?0:-1,"aria-selected":s===e,key:e,ref:function(t){return c.push(t)},onKeyDown:f,onClick:p},a,{className:(0,i.A)("tabs__item",g.tabItem,null==a?void 0:a.className,{"tabs__item--active":s===e})}),null!=n?n:e)})))}function b(t){var e=t.lazy,n=t.children,r=t.selectedValue,i=(Array.isArray(n)?n:[n]).filter(Boolean);if(e){var a=i.find((function(t){return t.props.value===r}));return a?(0,o.cloneElement)(a,{className:"margin-top--md"}):null}return o.createElement("div",{className:"margin-top--md"},i.map((function(t,e){return(0,o.cloneElement)(t,{key:e,hidden:t.props.value!==r})})))}function x(t){var e=h(t);return o.createElement("div",{className:(0,i.A)("tabs-container",g.tabList)},o.createElement(y,(0,r.A)({},t,e)),o.createElement(b,(0,r.A)({},t,e)))}function A(t){var e=(0,m.A)();return o.createElement(x,(0,r.A)({key:String(e)},t))}},39942:(t,e,n)=>{"use strict";n.d(e,{$:()=>r,V:()=>o});var r=function(){},o=function(){}},75792:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},41789:(t,e,n)=>{"use strict";n.d(e,{s:()=>c});var r=n(58932),o=n(39942),i=n(1892),a=n(68883);function s(){var t=!1,e=[],n=new Set,s={subscribe:function(t){return n.add(t),function(){n.delete(t)}},start:function(r,o){if(t){var a=[];return n.forEach((function(t){a.push((0,i._0)(t,r,{transitionOverride:o}))})),Promise.all(a)}return new Promise((function(t){e.push({animation:[r,o],resolve:t})}))},set:function(e){return(0,o.V)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),n.forEach((function(t){(0,a.VI)(t,e)}))},stop:function(){n.forEach((function(t){(0,i.TV)(t)}))},mount:function(){return t=!0,e.forEach((function(t){var e=t.animation,n=t.resolve;s.start.apply(s,(0,r.fX)([],(0,r.zs)(e),!1)).then(n)})),function(){t=!1,s.stop()}}};return s}var u=n(67308),l=n(17613);var c=function(){var t=(0,l.M)(s);return(0,u.useEffect)(t.mount,[]),t}},53372:(t,e,n)=>{"use strict";n.d(e,{p:()=>r});var r=function(t){return Array.isArray(t)}},57770:(t,e,n)=>{"use strict";n.d(e,{rU:()=>Mt,bM:()=>Pt});var r=n(58932),o=n(39942),i=n(1858);const a=.001,s=.01,u=10,l=.05,c=1;function d({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let d,v;(0,o.$)(t<=1e3*u,"Spring duration must be 10 seconds or less");let h=1-e;h=(0,i.q)(l,c,h),t=(0,i.q)(s,u,t/1e3),h<1?(d=e=>{const r=e*h,o=r*t,i=r-n,s=f(e,h),u=Math.exp(-o);return a-i/s*u},v=e=>{const r=e*h*t,o=r*n+n,i=Math.pow(h,2)*Math.pow(e,2)*t,s=Math.exp(-r),u=f(Math.pow(e,2),h);return(-d(e)+a>0?-1:1)*((o-i)*s)/u}):(d=e=>Math.exp(-e*t)*((e-n)*t+1)-a,v=e=>Math.exp(-e*t)*(t*t*(n-e)));const m=function(t,e,n){let r=n;for(let o=1;ovoid 0!==t[e]))}function g(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:i}=t,a=(0,r.Tt)(t,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:u,damping:l,mass:c,velocity:p,duration:g,isResolvedFromDuration:b}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!m(t,h)&&m(t,v)){const n=d(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(a),x=y,A=y;function w(){const t=p?-p/1e3:0,r=n-e,o=l/(2*Math.sqrt(u*c)),a=Math.sqrt(u/c)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=f(a,o);x=i=>{const s=Math.exp(-o*a*i);return n-s*((t+o*a*r)/e*Math.sin(e*i)+r*Math.cos(e*i))},A=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(e*n)*(t+o*a*r)/e+r*Math.cos(e*n))-i*(Math.cos(e*n)*(t+o*a*r)-e*r*Math.sin(e*n))}}else if(1===o)x=e=>n-Math.exp(-a*e)*(r+(t+a*r)*e);else{const e=a*Math.sqrt(o*o-1);x=i=>{const s=Math.exp(-o*a*i),u=Math.min(e*i,300);return n-s*((t+o*a*r)*Math.sinh(u)+e*r*Math.cosh(u))/e}}}return w(),{next:t=>{const e=x(t);if(b)s.done=t>=g;else{const r=1e3*A(t),a=Math.abs(r)<=o,u=Math.abs(n-e)<=i;s.done=a&&u}return s.value=s.done?n:e,s},flipTarget:()=>{p=-p,[e,n]=[n,e],w()}}}g.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const y=t=>0;var b=n(34300),x=n(96661),A=n(46166),w=n(28193),S=n(51205);function E(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function C({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=E(s,r,t+1/3),i=E(s,r,t),a=E(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}const T=(t,e,n)=>{const r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},V=[A.u,w.B,S.V],M=t=>V.find((e=>e.test(t))),P=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,R=(t,e)=>{let n=M(t),r=M(e);(0,o.V)(!!n,P(t)),(0,o.V)(!!r,P(e));let i=n.parse(t),a=r.parse(e);n===S.V&&(i=C(i),n=w.B),r===S.V&&(a=C(a),r=w.B);const s=Object.assign({},i);return t=>{for(const e in s)"alpha"!==e&&(s[e]=T(i[e],a[e],t));return s.alpha=(0,x.j)(i.alpha,a.alpha,t),n.transform(s)}};var k=n(45297),L=n(88652),j=n(49635),O=n(16173);function z(t,e){return(0,j.T)(t)?n=>(0,x.j)(t,e,n):k.y.test(t)?R(t,e):F(t,e)}const I=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>z(t,e[n])));return t=>{for(let e=0;e{const n=Object.assign(Object.assign({},t),e),r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=z(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function B(t){const e=L.f.parse(t),n=e.length;let r=0,o=0,i=0;for(let a=0;a{const n=L.f.createTransformer(e),r=B(t),i=B(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?(0,O.F)(I(r.parsed,i.parsed),n):((0,o.$)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},N=(t,e)=>n=>(0,x.j)(t,e,n);function $(t,e,n){const r=[],o=n||("number"==typeof(i=t[0])?N:"string"==typeof i?k.y.test(i)?R:F:Array.isArray(i)?I:"object"==typeof i?D:void 0);var i;const a=t.length-1;for(let s=0;st[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const u=$(e,r,a),l=2===s?function([t,e],[n]){return r=>n((0,b.q)(t,e,r))}(t,u):function(t,e){const n=t.length,r=n-1;return o=>{let i=0,a=!1;if(o<=t[0]?a=!0:o>=t[r]&&(i=r-1,a=!0),!a){let e=1;for(;eo||e===r);e++);i=e-1}const s=(0,b.q)(t[i],t[i+1],o);return e[i](s)}}(t,u);return n?e=>l((0,i.q)(t[0],t[s-1],e)):l}var W=n(63543);function X(t,e){return t.map((()=>e||W.am)).splice(0,t.length-1)}function q({from:t=0,to:e=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:t},a=Array.isArray(e)?e:[t,e],s=function(t,e){return t.map((t=>t*e))}(r&&r.length===a.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(a),o);function u(){return U(s,a,{ease:Array.isArray(n)?n:X(a,n)})}let l=u();return{next:t=>(i.value=l(t),i.done=t>=o,i),flipTarget:()=>{a.reverse(),l=u()}}}const H={keyframes:q,spring:g,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:e};let s=n*t;const u=e+s,l=void 0===i?u:i(u);return l!==u&&(s=l-e),{next:t=>{const e=-s*Math.exp(-t/r);return a.done=!(e>o||e<-o),a.value=a.done?l:l+e,a},flipTarget:()=>{}}}};var K=n(25303);function Y(t,e,n=0){return t-e-n}const _=t=>{const e=({delta:e})=>t(e);return{start:()=>K.Ay.update(e,!0),stop:()=>K.eO.update(e)}};function G(t){var e,n,{from:o,autoplay:i=!0,driver:a=_,elapsed:s=0,repeat:u=0,repeatType:l="loop",repeatDelay:c=0,onPlay:d,onStop:p,onComplete:f,onRepeat:v,onUpdate:h}=t,m=(0,r.Tt)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,b,x,{to:A}=m,w=0,S=m.duration,E=!1,C=!0;const T=function(t){if(Array.isArray(t.to))return q;if(H[t.type])return H[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?q:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?g:q}(m);(null===(n=(e=T).needsInterpolation)||void 0===n?void 0:n.call(e,o,A))&&(x=U([0,100],[o,A],{clamp:!1}),o=0,A=100);const V=T(Object.assign(Object.assign({},m),{from:o,to:A}));function M(){w++,"reverse"===l?(C=w%2==0,s=function(t,e,n=0,r=!0){return r?Y(e+-t,e,n):e-(t-e)+n}(s,S,c,C)):(s=Y(s,S,c),"mirror"===l&&V.flipTarget()),E=!1,v&&v()}function P(t){if(C||(t=-t),s+=t,!E){const t=V.next(Math.max(0,s));b=t.value,x&&(b=x(b)),E=C?t.done:s<=0}null==h||h(b),E&&(0===w&&(null!=S||(S=s)),w=e+n:t<=-n}(s,S,c,C)&&M():(y.stop(),f&&f()))}return i&&(null==d||d(),y=a(P),y.start()),{stop:()=>{null==p||p(),y.stop()}}}var Z=n(62031);var J=n(86333);const Q=(t,e)=>1-3*e+3*t,tt=(t,e)=>3*e-6*t,et=t=>3*t,nt=(t,e,n)=>((Q(e,n)*t+tt(e,n))*t+et(e))*t,rt=(t,e,n)=>3*Q(e,n)*t*t+2*tt(e,n)*t+et(e),ot=1e-7,it=10;const at=8;const st=.1;function ut(t,e,n,r){if(t===e&&n===r)return W.sn;const o=new Float32Array(11);for(let a=0;a<11;++a)o[a]=nt(a*st,t,n);function i(e){let r=0,i=1;for(;10!==i&&o[i]<=e;++i)r+=st;--i;const a=r+(e-o[i])/(o[i+1]-o[i])*st,s=rt(a,t,n);return s>=.001?function(t,e,n,r){for(let o=0;o0?n=a:e=a}while(Math.abs(i)>ot&&++s0===t||1===t?t:nt(i(t),e,r)}var lt={linear:W.sn,easeIn:W.a6,easeInOut:W.am,easeOut:W.vT,circIn:W.po,circInOut:W.tn,circOut:W.yT,backIn:W.dg,backInOut:W.ZZ,backOut:W.Sz,anticipate:W.bt,bounceIn:W.ip,bounceInOut:W.wm,bounceOut:W.Te},ct=function(t){if(Array.isArray(t)){(0,o.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var e=(0,r.zs)(t,4);return ut(e[0],e[1],e[2],e[3])}return"string"==typeof t?((0,o.V)(void 0!==lt[t],"Invalid easing type '".concat(t,"'")),lt[t]):t},dt=function(t){return Array.isArray(t)&&"number"!=typeof t[0]},pt=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!L.f.test(e)||e.startsWith("url(")))},ft=n(53372),vt=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},ht=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},mt=function(){return{type:"keyframes",ease:"linear",duration:.3}},gt=function(t){return{type:"keyframes",duration:.8,values:t}},yt={x:vt,y:vt,z:vt,rotate:vt,rotateX:vt,rotateY:vt,rotateZ:vt,scaleX:ht,scaleY:ht,scale:ht,opacity:mt,backgroundColor:mt,color:mt,default:ht},bt=function(t,e){var n;return n=(0,ft.p)(e)?gt:yt[t]||yt.default,(0,r.Cl)({to:e},n(e))},xt=n(852),At={current:!1},wt=n(54065);var St=!1;function Et(t,e,n){var i;return Array.isArray(e.to)&&(null!==(i=t.duration)&&void 0!==i||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=(0,r.fX)([],(0,r.zs)(t.to),!1),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=(0,r.Tt)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=(0,r.Cl)((0,r.Cl)({},t),bt(n,e.to))),(0,r.Cl)((0,r.Cl)({},e),function(t){var e=t.ease,n=t.times,i=t.yoyo,a=t.flip,s=t.loop,u=(0,r.Tt)(t,["ease","times","yoyo","flip","loop"]),l=(0,r.Cl)({},u);return n&&(l.offset=n),u.duration&&(l.duration=(0,J.f)(u.duration)),u.repeatDelay&&(l.repeatDelay=(0,J.f)(u.repeatDelay)),e&&(l.ease=dt(e)?e.map(ct):ct(e)),"tween"===u.type&&(l.type="keyframes"),(i||s||a)&&((0,o.$)(!St,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),St=!0,i?l.repeatType="reverse":s?l.repeatType="loop":a&&(l.repeatType="mirror"),l.repeat=s||i||a||u.repeat),"spring"!==u.type&&(l.type="keyframes"),l}(t))}function Ct(t,e,n,i,a){var s,u=Mt(i,t),l=null!==(s=u.from)&&void 0!==s?s:e.get(),c=pt(t,n);"none"===l&&c&&"string"==typeof n?l=(0,xt.J)(t,n):Tt(l)&&"string"==typeof n?l=Vt(n):!Array.isArray(n)&&Tt(n)&&"string"==typeof l&&(n=Vt(l));var d=pt(t,l);return(0,o.$)(d===c,"You are trying to animate ".concat(t,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property.")),d&&c&&!1!==u.type?function(){var o={from:l,to:n,velocity:e.getVelocity(),onComplete:a,onUpdate:function(t){return e.set(t)}};return"inertia"===u.type||"decay"===u.type?function({from:t=0,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:d,onComplete:p,onStop:f}){let v;function h(t){return void 0!==n&&tr}function m(t){return void 0===n?r:void 0===r||Math.abs(n-t){var n;null==d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:p,onStop:f}))}function y(t){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},t))}if(h(t))y({from:t,velocity:e,to:m(t)});else{let r=o*e+t;void 0!==l&&(r=l(r));const a=m(r),s=a===n?-1:1;let c,d;const p=t=>{c=d,d=t,e=(0,Z.f)(t-c,(0,K.KK)().delta),(1===s&&t>a||-1===s&&tnull==v?void 0:v.stop()}}((0,r.Cl)((0,r.Cl)({},o),u)):G((0,r.Cl)((0,r.Cl)({},Et(u,o,t)),{onUpdate:function(t){var e;o.onUpdate(t),null===(e=u.onUpdate)||void 0===e||e.call(u,t)},onComplete:function(){var t;o.onComplete(),null===(t=u.onComplete)||void 0===t||t.call(u)}}))}:function(){var t,r,o=(0,wt.K)(n);return e.set(o),a(),null===(t=null==u?void 0:u.onUpdate)||void 0===t||t.call(u,o),null===(r=null==u?void 0:u.onComplete)||void 0===r||r.call(u),{stop:function(){}}}}function Tt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Vt(t){return"number"==typeof t?0:(0,xt.J)("",t)}function Mt(t,e){return t[e]||t.default||t}function Pt(t,e,n,r){return void 0===r&&(r={}),At.current&&(r={type:!1}),e.start((function(o){var i,a,s=Ct(t,e,n,r,o),u=function(t,e){var n,r;return null!==(r=null!==(n=(Mt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),l=function(){return a=s()};return u?i=window.setTimeout(l,(0,J.f)(u)):l(),function(){clearTimeout(i),null==a||a.stop()}}))}},53103:(t,e,n)=>{"use strict";n.d(e,{P:()=>_r});var r=n(58932),o=n(67308),i=("undefined"==typeof process||process.env,"production"),a=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},s={measureLayout:a(["layout","layoutId","drag"]),animation:a(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:a(["exit"]),drag:a(["drag","dragControls"]),focus:a(["whileFocus"]),hover:a(["whileHover","onHoverStart","onHoverEnd"]),tap:a(["whileTap","onTap","onTapStart","onTapCancel"]),pan:a(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:a(["whileInView","onViewportEnter","onViewportLeave"])};var u=n(39942),l=(0,o.createContext)({strict:!1}),c=Object.keys(s),d=c.length;var p=(0,o.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),f=(0,o.createContext)({});var v=(0,o.createContext)(null),h=n(43892),m=n(3908),g={current:null},y=!1;function b(){return!y&&function(){if(y=!0,m.B)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return g.current=t.matches};t.addListener(e),e()}else g.current=!1}(),(0,r.zs)((0,o.useState)(g.current),1)[0]}function x(t,e,n,r){var i,a,s=(0,o.useContext)(l),u=(0,o.useContext)(f).visualElement,c=(0,o.useContext)(v),d=(i=b(),"never"!==(a=(0,o.useContext)(p).reducedMotion)&&("always"===a||i)),m=(0,o.useRef)(void 0);r||(r=s.renderer),!m.current&&r&&(m.current=r(t,{visualState:e,parent:u,props:n,presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial),shouldReduceMotion:d}));var g=m.current;return(0,h.E)((function(){null==g||g.syncRender()})),(0,o.useEffect)((function(){var t;null===(t=null==g?void 0:g.animationState)||void 0===t||t.animateChanges()})),(0,h.E)((function(){return function(){return null==g?void 0:g.notifyUnmount()}}),[]),g}function A(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var w=n(86780);function S(t){var e=function(t,e){if((0,w.rG)(t)){var n=t.initial,r=t.animate;return{initial:!1===n||(0,w.wf)(n)?n:void 0,animate:(0,w.wf)(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(f)),n=e.initial,r=e.animate;return(0,o.useMemo)((function(){return{initial:n,animate:r}}),[E(n),E(r)])}function E(t){return Array.isArray(t)?t.join(" "):t}var C=n(17613),T={hasAnimatedSinceResize:!0,hasEverUpdated:!1},V=1;var M=(0,o.createContext)({}),P=(0,o.createContext)({});var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},e.prototype.componentDidUpdate=function(){},e.prototype.updateProps=function(){var t=this.props,e=t.visualElement,n=t.props;e&&e.setProps(n)},e.prototype.render=function(){return this.props.children},e}(o.Component);function k(t){var e=t.preloadedFeatures,n=t.createVisualElement,a=t.projectionNodeConstructor,v=t.useRender,h=t.useVisualState,g=t.Component;return e&&function(t){for(var e in t)null!==t[e]&&("projectionNodeConstructor"===e?s.projectionNodeConstructor=t[e]:s[e].Component=t[e])}(e),(0,o.forwardRef)((function(t,y){var b=function(t){var e,n=t.layoutId,r=null===(e=(0,o.useContext)(M))||void 0===e?void 0:e.id;return r&&void 0!==n?r+"-"+n:n}(t);t=(0,r.Cl)((0,r.Cl)({},t),{layoutId:b});var w=(0,o.useContext)(p),E=null,k=S(t),L=w.isStatic?void 0:(0,C.M)((function(){if(T.hasEverUpdated)return V++})),j=h(t,w.isStatic);return!w.isStatic&&m.B&&(k.visualElement=x(g,j,(0,r.Cl)((0,r.Cl)({},w),t),n),function(t,e,n,r){var i,a=e.layoutId,s=e.layout,u=e.drag,l=e.dragConstraints,c=e.layoutScroll,d=(0,o.useContext)(P);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(t,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(u)||l&&A(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(L,t,k.visualElement,a||s.projectionNodeConstructor),E=function(t,e,n){var a=[],p=(0,o.useContext)(l);if(!e)return null;"production"!==i&&n&&p.strict&&(0,u.V)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var f=0;f-1||/[A-Z]/.test(t))}var z={};var I=n(64532);function D(t,e){var n=e.layout,r=e.layoutId;return(0,I.wY)(t)||(0,I.cj)(t)||(n||void 0!==r)&&(!!z[t]||"opacity"===t)}var B=function(t){return Boolean(null!==t&&"object"==typeof t&&t.getVelocity)},F={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function N(t){return t.startsWith("--")}var $=function(t,e){return e&&"number"==typeof t?e.transform(t):t},U=n(35619);function W(t,e,n,r){var o,i=t.style,a=t.vars,s=t.transform,u=t.transformKeys,l=t.transformOrigin;u.length=0;var c=!1,d=!1,p=!0;for(var f in e){var v=e[f];if(N(f))a[f]=v;else{var h=U.W[f],m=$(v,h);if((0,I.wY)(f)){if(c=!0,s[f]=m,u.push(f),!p)continue;v!==(null!==(o=h.default)&&void 0!==o?o:0)&&(p=!1)}else(0,I.cj)(f)?(l[f]=m,d=!0):i[f]=m}}c?i.transform=function(t,e,n,r){var o=t.transform,i=t.transformKeys,a=e.enableHardwareAcceleration,s=void 0===a||a,u=e.allowTransformNone,l=void 0===u||u,c="";i.sort(I.X4);for(var d=!1,p=i.length,f=0;fh&&y,E=Array.isArray(g)?g:[g],C=E.reduce(s,{});!1===b&&(C={});var T=m.prevResolvedValues,V=void 0===T?{}:T,M=(0,r.Cl)((0,r.Cl)({},V),C),P=function(t){S=!0,f.delete(t),m.needsAnimating[t]=!0};for(var R in M){var k=C[R],L=V[R];v.hasOwnProperty(R)||(k!==L?(0,le.p)(k)&&(0,le.p)(L)?!ce(k,L)||A?P(R):m.protectedKeys[R]=!0:void 0!==k?P(R):f.add(R):void 0!==k&&f.has(R)?P(R):m.protectedKeys[R]=!0)}m.prevProp=g,m.prevResolvedValues=C,m.isActive&&(v=(0,r.Cl)((0,r.Cl)({},v),C)),a&&t.blockInitialAnimation&&(S=!1),S&&!x&&p.push.apply(p,(0,r.fX)([],(0,r.zs)(E.map((function(t){return{animation:t,options:(0,r.Cl)({type:i},e)}}))),!1))},g=0;gt.hasOwnProperty("x")&&t.hasOwnProperty("y"),Ae=t=>xe(t)&&t.hasOwnProperty("z");var we=n(49635);const Se=(t,e)=>Math.abs(t-e);function Ee(t,e){if((0,we.T)(t)&&(0,we.T)(e))return Se(t,e);if(xe(t)&&xe(e)){const n=Se(t.x,e.x),r=Se(t.y,e.y),o=Ae(t)&&Ae(e)?Se(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var Ce=function(){function t(t,e,n){var o=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var t=Me(o.lastMoveEventInfo,o.history),e=null!==o.startEvent,n=Ee(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,a=(0,ye.KK)().timestamp;o.history.push((0,r.Cl)((0,r.Cl)({},i),{timestamp:a}));var s=o.handlers,u=s.onStart,l=s.onMove;e||(u&&u(o.lastMoveEvent,t),o.startEvent=o.lastMoveEvent),l&&l(o.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){o.lastMoveEvent=t,o.lastMoveEventInfo=Te(e,o.transformPagePoint),Et(t)&&0===t.buttons?o.handlePointerUp(t,e):ye.Ay.update(o.updatePoint,!0)},this.handlePointerUp=function(t,e){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=Me(Te(e,o.transformPagePoint),o.history);o.startEvent&&r&&r(t,a),i&&i(t,a)},!(Ct(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var a=Te(Pt(t),this.transformPagePoint),s=a.point,u=(0,ye.KK)().timestamp;this.history=[(0,r.Cl)((0,r.Cl)({},s),{timestamp:u})];var l=e.onSessionStart;l&&l(t,Me(a,this.history)),this.removeListeners=(0,Kt.F)(Dt(window,"pointermove",this.handlePointerMove),Dt(window,"pointerup",this.handlePointerUp),Dt(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),ye.eO.update(this.updatePoint)},t}();function Te(t,e){return e?{point:e(t.point)}:t}function Ve(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Me(t,e){var n=t.point;return{point:n,delta:Ve(n,Re(e)),offset:Ve(n,Pe(e)),velocity:ke(e,.1)}}function Pe(t){return t[0]}function Re(t){return t[t.length-1]}function ke(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,o=Re(t);n>=0&&(r=t[n],!(o.timestamp-r.timestamp>(0,be.f)(e)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Le=n(96661),je=n(34300),Oe=n(1858);function ze(t){return t.max-t.min}function Ie(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),Ee(t,e)e?n="y":Math.abs(t.x)>e&&(n="x");return n}(u),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",e.point,u),n.updateAxis("y",e.point,u),n.visualElement.syncRender(),null==s||s(t,e)}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(t,e){var n=this.isDragging;if(this.cancel(),n){var r=e.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(t,e)}},t.prototype.cancel=function(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(bt.Drag,!1)},t.prototype.updateAxis=function(t,e,n){var r=this.getProps().drag;if(n&&hn(t,r,this.currentDirection)){var o,i,a,s,u,l=this.getAxisMotionValue(t),c=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=c,i=this.constraints[t],a=this.elastic[t],s=i.min,u=i.max,void 0!==s&&ou&&(o=a?(0,Le.j)(u,o,a.max):Math.min(o,u)),c=o),l.set(c)}},t.prototype.resolveConstraints=function(){var t=this,e=this.getProps(),n=e.dragConstraints,r=e.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&A(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(t,e){var n=e.top,r=e.left,o=e.bottom,i=e.right;return{x:Ue(t.x,r,i),y:Ue(t.y,n,o)}}(o.actual,n),this.elastic=function(t){return void 0===t&&(t=Xe),!1===t?t=0:!0===t&&(t=Xe),{x:qe(t,"left","right"),y:qe(t,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&_e((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(o.actual[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!A(e))return!1;var r=e.current;(0,u.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(t,e,n){var r=dn(t,n),o=e.scroll;return o&&(an(r.x,o.x),an(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(t,e){return{x:We(t.x,e.x),y:We(t.y,e.y)}}(o.layout.actual,i);if(n){var s=n(function(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Ge(s))}return a},t.prototype.startAnimation=function(t){var e=this,n=this.getProps(),o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},d=_e((function(n){var l;if(hn(n,o,e.currentDirection)){var d=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};u&&(d={min:0,max:0});var p=a?200:1e6,f=a?40:1e7,v=(0,r.Cl)((0,r.Cl)({type:"inertia",velocity:i?t[n]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},s),d);return e.startAxisValueAnimation(n,v)}}));return Promise.all(d).then(l)},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);return(0,pn.bM)(t,n,0,e)},t.prototype.stopAnimation=function(){var t=this;_e((function(e){return t.getAxisMotionValue(e).stop()}))},t.prototype.getAxisMotionValue=function(t){var e,n,r="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)},t.prototype.snapToCursor=function(t){var e=this;_e((function(n){if(hn(n,e.getProps().drag,e.currentDirection)){var r=e.visualElement.projection,o=e.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(t[n]-(0,Le.j)(a,s,.5))}}}))},t.prototype.scalePositionWithinConstraints=function(){var t,e=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(A(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};_e((function(t){var n,r,o,i,s,u=e.getAxisMotionValue(t);if(u){var l=u.get();a[t]=(n={min:l,max:l},r=e.constraints[t],o=.5,i=ze(n),(s=ze(r))>i?o=(0,je.q)(r.min,r.max-i,n.min):i>s&&(o=(0,je.q)(n.min,n.max-s,r.min)),(0,Oe.q)(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),_e((function(t){if(hn(t,r,null)){var n=e.getAxisMotionValue(t),o=e.constraints[t],i=o.min,s=o.max;n.set((0,Le.j)(i,s,a[t]))}}))}},t.prototype.addListeners=function(){var t,e=this;fn.set(this.visualElement,this);var n=Dt(this.visualElement.getInstance(),"pointerdown",(function(t){var n=e.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&e.start(t)})),r=function(){A(e.getProps().dragConstraints)&&(e.constraints=e.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),r();var a=wt(window,"resize",(function(){return e.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&(_e((function(t){var r=e.getAxisMotionValue(t);r&&(e.originPoint[t]+=n[t].translate,r.set(r.get()+n[t].translate))})),e.visualElement.syncRender())})),function(){a(),n(),i()}},t.prototype.getProps=function(){var t=this.visualElement.getProps(),e=t.drag,n=void 0!==e&&e,o=t.dragDirectionLock,i=void 0!==o&&o,a=t.dragPropagation,s=void 0!==a&&a,u=t.dragConstraints,l=void 0!==u&&u,c=t.dragElastic,d=void 0===c?Xe:c,p=t.dragMomentum,f=void 0===p||p;return(0,r.Cl)((0,r.Cl)({},t),{drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:l,dragElastic:d,dragMomentum:f})},t}();function hn(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var mn={pan:re((function(t){var e=t.onPan,n=t.onPanStart,r=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=e||n||r||i,u=(0,o.useRef)(null),l=(0,o.useContext)(p).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:e,onEnd:function(t,e){u.current=null,r&&r(t,e)}};(0,o.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),Bt(a,"pointerdown",s&&function(t){u.current=new Ce(t,c,{transformPagePoint:l})}),Ht((function(){return u.current&&u.current.end()}))})),drag:re((function(t){var e=t.dragControls,n=t.visualElement,r=(0,C.M)((function(){return new vn(n)}));(0,o.useEffect)((function(){return e&&e.subscribe(r)}),[r,e]),(0,o.useEffect)((function(){return r.addListeners()}),[r])}))},gn=n(57181),yn=n(41818),bn=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var xn=function(t){var e=t.treeType,n=void 0===e?"":e,o=t.build,i=t.getBaseTarget,a=t.makeTargetAnimatable,s=t.measureViewportBox,u=t.render,l=t.readValueFromInstance,c=t.removeValueFromRenderState,d=t.sortNodePosition,p=t.scrapeMotionValuesFromProps;return function(t,e){var f=t.parent,v=t.props,h=t.presenceId,m=t.blockInitialAnimation,g=t.visualState,y=t.shouldReduceMotion;void 0===e&&(e={});var b,x,A=!1,S=g.latestValues,E=g.renderState,C=function(){var t=bn.map((function(){return new yn.v})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){bn.forEach((function(r){var o,i="on"+r,a=t[i];null===(o=e[r])||void 0===o||o.call(e),a&&(e[r]=n[i](a))}))}};return t.forEach((function(t,e){n["on"+bn[e]]=function(e){return t.add(e)},n["notify"+bn[e]]=function(){for(var e=[],n=0;n=0?window.pageYOffset:null,d=function(t,e,n){var r=e.measureViewportBox(),o=e.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((function(t){s[t]=Fn[t](r,i)})),e.syncRender();var u=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);jn(r,s[n]),t[n]=Fn[n](u,i)})),t}(e,t,l);return a.length&&a.forEach((function(e){var n=(0,r.zs)(e,2),o=n[0],i=n[1];t.getValue(o).set(i)})),t.syncRender(),null!==c&&window.scrollTo({top:c}),{target:d,transitionEnd:o}}return{target:e,transitionEnd:o}};function $n(t,e,n,r){return function(t){return Object.keys(t).some(Ln)}(e)?Nn(t,e,n,r):{target:e,transitionEnd:r}}var Un=function(t,e,n,o){var i=function(t,e,n){var o,i=(0,r.Tt)(e,[]),a=t.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var s in n&&(n=(0,r.Cl)({},n)),t.forEachValue((function(t){var e=t.get();if(En(e)){var n=Vn(e,a);n&&t.set(n)}})),i){var u=i[s];if(En(u)){var l=Vn(u,a);l&&(i[s]=l,n&&(null!==(o=n[s])&&void 0!==o||(n[s]=u)))}}return{target:i,transitionEnd:n}}(t,e,o);return $n(t,e=i.target,n,o=i.transitionEnd)},Wn=n(57527);var Xn={treeType:"dom",readValueFromInstance:function(t,e){if((0,I.wY)(e)){var n=(0,Wn.D)(e);return n&&n.default||0}var r,o=(r=t,window.getComputedStyle(r));return(N(e)?o.getPropertyValue(e):o[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){return dn(t,e.transformPagePoint)},resetTransform:function(t,e,n){var r=n.transformTemplate;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,r=e.style;delete n[t],delete r[t]},makeTargetAnimatable:function(t,e,n,o){var i=n.transformValues;void 0===o&&(o=!0);var a=e.transition,s=e.transitionEnd,u=(0,r.Tt)(e,["transition","transitionEnd"]),l=(0,Sn.$z)(u,a||{},t);if(i&&(s&&(s=i(s)),u&&(u=i(u)),l&&(l=i(l))),o){(0,Sn.TM)(t,u,l);var c=Un(t,u,l,s);s=c.transitionEnd,u=c.target}return(0,r.Cl)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:dt,build:function(t,e,n,r,o){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),W(e,n,r,o.transformTemplate)},render:ut},qn=xn(Xn),Hn=xn((0,r.Cl)((0,r.Cl)({},Xn),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return(0,I.wY)(e)?(null===(n=(0,Wn.D)(e))||void 0===n?void 0:n.default)||0:(e=lt.has(e)?e:st(e),t.getAttribute(e))},scrapeMotionValuesFromProps:pt,build:function(t,e,n,r,o){nt(e,n,r,o.transformTemplate)},render:ct})),Kn=function(t,e){return O(t)?Hn(e,{enableHardwareAcceleration:!1}):qn(e,{enableHardwareAcceleration:!0})};function Yn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var _n={correct:function(t,e){if(!e.target)return t;if("string"==typeof t){if(!J.px.test(t))return t;t=parseFloat(t)}var n=Yn(t,e.target.x),r=Yn(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},Gn=n(88652),Zn="_$css",Jn={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,o=t,i=t.includes("var("),a=[];i&&(t=t.replace(Cn,(function(t){return a.push(t),Zn})));var s=Gn.f.parse(t);if(s.length>5)return o;var u=Gn.f.createTransformer(t),l="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=d;var p=(0,Le.j)(c,d,.5);"number"==typeof s[2+l]&&(s[2+l]/=p),"number"==typeof s[3+l]&&(s[3+l]/=p);var f=u(s);if(i){var v=0;f=f.replace(Zn,(function(){var t=a[v];return v++,t}))}return f}},Qn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.componentDidMount=function(){var t,e=this,n=this.props,o=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=o.projection;t=tr,Object.assign(z,t),u&&((null==i?void 0:i.group)&&i.group.add(u),(null==a?void 0:a.register)&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){e.safeToRemove()})),u.setOptions((0,r.Cl)((0,r.Cl)({},u.options),{onExitComplete:function(){return e.safeToRemove()}}))),T.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(t){var e=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||t.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||ye.Ay.postRender((function(){var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||e.safeToRemove()}))),null):null},e.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,r=t.switchLayoutGroup,o=e.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},e.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null==t||t()},e.prototype.render=function(){return null},e}(o.Component);var tr={borderRadius:(0,r.Cl)((0,r.Cl)({},_n),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:_n,borderTopRightRadius:_n,borderBottomLeftRadius:_n,borderBottomRightRadius:_n,boxShadow:Jn},er={measureLayout:function(t){var e=(0,r.zs)(ue(),2),n=e[0],i=e[1],a=(0,o.useContext)(M);return o.createElement(Qn,(0,r.Cl)({},t,{layoutGroup:a,switchLayoutGroup:(0,o.useContext)(P),isPresent:n,safeToRemove:i}))}};var nr=n(63543),rr=["TopLeft","TopRight","BottomLeft","BottomRight"],or=rr.length,ir=function(t){return"string"==typeof t?parseFloat(t):t},ar=function(t){return"number"==typeof t||J.px.test(t)};function sr(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}var ur=cr(0,.5,nr.yT),lr=cr(.5,.95,nr.sn);function cr(t,e,n){return function(r){return re?1:n((0,je.q)(t,e,r))}}function dr(t,e){t.min=e.min,t.max=e.max}function pr(t,e){dr(t.x,e.x),dr(t.y,e.y)}function fr(t,e,n,r,o){return t=en(t-=e,1/n,r),void 0!==o&&(t=en(t,1/o,r)),t}function vr(t,e,n,o,i){var a=(0,r.zs)(n,3),s=a[0],u=a[1],l=a[2];!function(t,e,n,r,o,i,a){if(void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=t),void 0===a&&(a=t),J.KN.test(e)&&(e=parseFloat(e),e=(0,Le.j)(a.min,a.max,e/100)-a.min),"number"==typeof e){var s=(0,Le.j)(i.min,i.max,r);t===i&&(s-=e),t.min=fr(t.min,e,n,s,o),t.max=fr(t.max,e,n,s,o)}}(t,e[s],e[u],e[l],e.scale,o,i)}var hr=["x","scaleX","originX"],mr=["y","scaleY","originY"];function gr(t,e,n,r){vr(t.x,e,hr,null==n?void 0:n.x,null==r?void 0:r.x),vr(t.y,e,mr,null==n?void 0:n.y,null==r?void 0:r.y)}function yr(t){return 0===t.translate&&1===t.scale}function br(t){return yr(t.x)&&yr(t.y)}function xr(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}var Ar=n(89442),wr=function(){function t(){this.members=[]}return t.prototype.add=function(t){(0,Ar.Kq)(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if((0,Ar.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}},t.prototype.relegate=function(t){var e,n=this.members.findIndex((function(e){return t===e}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){e=o;break}}return!!e&&(this.promote(e),!0)},t.prototype.promote=function(t,e){var n,r=this.lead;t!==r&&(this.prevLead=r,this.lead=t,t.show(),r&&(r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues,t.snapshot.isShared=!0),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&r.hide()))},t.prototype.exitAnimationComplete=function(){this.members.forEach((function(t){var e,n,r,o,i;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(i=null===(r=t.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},t.prototype.scheduleRender=function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}(),Sr="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Er(t,e,n){var r=t.x.translate/e.x,o=t.y.translate/e.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/e.x,", ").concat(1/e.y,") "),n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),u&&(i+="rotateY(".concat(u,"deg) "))}var l=t.x.scale*e.x,c=t.y.scale*e.y;return(i+="scale(".concat(l,", ").concat(c,")"))===Sr?"none":i}var Cr=function(t,e){return t.depth-e.depth},Tr=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){(0,Ar.Kq)(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){(0,Ar.Ai)(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(Cr),this.isDirty=!1,this.children.forEach(t)},t}();function Vr(t){var e=t.attachResizeListener,n=t.defaultParent,o=t.measureScroll,i=t.checkIsScrollRoot,a=t.resetTransform;return function(){function t(t,e,o){var i=this;void 0===e&&(e={}),void 0===o&&(o=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(Or),i.nodes.forEach(zr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=t,this.latestValues=e,this.root=o?o.root||o:this,this.path=o?(0,r.fX)((0,r.fX)([],(0,r.zs)(o.path),!1),[o],!1):[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(var a=0;a=0;r--)if(Boolean(t.path[r].instance)){n=t.path[r];break}var o=(n&&n!==t.root?n.instance:document).querySelector('[data-projection-id="'.concat(e,'"]'));o&&t.mount(o,!0)}function Wr(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Xr(t){Wr(t.x),Wr(t.y)}var qr=Vr({attachResizeListener:function(t,e){return wt(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Hr={current:void 0},Kr=Vr({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!Hr.current){var t=new qr(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Hr.current=t}return Hr.current},resetTransform:function(t,e){t.style.transform=null!=e?e:"none"},checkIsScrollRoot:function(t){return Boolean("fixed"===window.getComputedStyle(t).position)}}),Yr=(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({},ge),oe),mn),er),_r=L((function(t,e){return function(t,e,n,o,i){var a=e.forwardMotionProps,s=void 0!==a&&a,u=O(t)?xt:At;return(0,r.Cl)((0,r.Cl)({},u),{preloadedFeatures:n,useRender:it(s),createVisualElement:o,projectionNodeConstructor:i,Component:t})}(t,e,Yr,Kn,Kr)}))},852:(t,e,n)=>{"use strict";n.d(e,{J:()=>a});var r=n(41026),o=n(88652),i=n(57527);function a(t,e){var n,a=(0,i.D)(t);return a!==r.p&&(a=o.f),null===(n=a.getAnimatableNone)||void 0===n?void 0:n.call(a,e)}},57527:(t,e,n)=>{"use strict";n.d(e,{D:()=>u});var r=n(58932),o=n(45297),i=n(41026),a=n(35619),s=(0,r.Cl)((0,r.Cl)({},a.W),{color:o.y,backgroundColor:o.y,outlineColor:o.y,fill:o.y,stroke:o.y,borderColor:o.y,borderTopColor:o.y,borderRightColor:o.y,borderBottomColor:o.y,borderLeftColor:o.y,filter:i.p,WebkitFilter:i.p}),u=function(t){return s[t]}},9105:(t,e,n)=>{"use strict";n.d(e,{T:()=>a,n:()=>s});var r=n(88886),o=n(95639),i=n(87245),a=[r.ai,o.px,o.KN,o.uj,o.vw,o.vh,{test:function(t){return"auto"===t},parse:function(t){return t}}],s=function(t){return a.find((0,i.w)(t))}},35619:(t,e,n)=>{"use strict";n.d(e,{W:()=>s});var r=n(95639),o=n(88886),i=n(58932),a=(0,i.Cl)((0,i.Cl)({},o.ai),{transform:Math.round}),s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.uj,rotateX:r.uj,rotateY:r.uj,rotateZ:r.uj,scale:o.hs,scaleX:o.hs,scaleY:o.hs,scaleZ:o.hs,skew:r.uj,skewX:r.uj,skewY:r.uj,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:o.X4,originX:r.gQ,originY:r.gQ,originZ:r.px,zIndex:a,fillOpacity:o.X4,strokeOpacity:o.X4,numOctaves:a}},87245:(t,e,n)=>{"use strict";n.d(e,{w:()=>r});var r=function(t){return function(e){return e.test(t)}}},64532:(t,e,n)=>{"use strict";n.d(e,{X4:()=>i,cj:()=>l,fu:()=>o,mV:()=>r,wY:()=>s});var r=["","X","Y","Z"],o=["transformPerspective","x","y","z"];function i(t,e){return o.indexOf(t)-o.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return r.forEach((function(e){return o.push(t+e)}))}));var a=new Set(o);function s(t){return a.has(t)}var u=new Set(["originX","originY","originZ"]);function l(t){return u.has(t)}},1892:(t,e,n)=>{"use strict";n.d(e,{TV:()=>d,_0:()=>u});var r=n(58932),o=n(57770),i=n(68883),a=n(86780),s=n(64532);function u(t,e,n){var r;if(void 0===n&&(n={}),t.notifyAnimationStart(e),Array.isArray(e)){var o=e.map((function(e){return l(t,e,n)}));r=Promise.all(o)}else if("string"==typeof e)r=l(t,e,n);else{var i="function"==typeof e?(0,a.KC)(t,e,n.custom):e;r=c(t,i,n)}return r.then((function(){return t.notifyAnimationComplete(e)}))}function l(t,e,n){var o;void 0===n&&(n={});var i=(0,a.KC)(t,e,n.custom),s=(i||{}).transition,u=void 0===s?t.getDefaultTransition()||{}:s;n.transitionOverride&&(u=n.transitionOverride);var d=i?function(){return c(t,i,n)}:function(){return Promise.resolve()},f=(null===(o=t.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var i=u.delayChildren,a=void 0===i?0:i,s=u.staggerChildren,c=u.staggerDirection;return function(t,e,n,o,i,a){void 0===n&&(n=0);void 0===o&&(o=0);void 0===i&&(i=1);var s=[],u=(t.variantChildren.size-1)*o,c=1===i?function(t){return void 0===t&&(t=0),t*o}:function(t){return void 0===t&&(t=0),u-t*o};return Array.from(t.variantChildren).sort(p).forEach((function(t,o){s.push(l(t,e,(0,r.Cl)((0,r.Cl)({},a),{delay:n+c(o)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(s)}(t,e,a+o,s,c,n)}:function(){return Promise.resolve()},v=u.when;if(v){var h=(0,r.zs)("beforeChildren"===v?[d,f]:[f,d],2),m=h[0],g=h[1];return m().then(g)}return Promise.all([d(),f(n.delay)])}function c(t,e,n){var a,u=void 0===n?{}:n,l=u.delay,c=void 0===l?0:l,d=u.transitionOverride,p=u.type,v=t.makeTargetAnimatable(e),h=v.transition,m=void 0===h?t.getDefaultTransition():h,g=v.transitionEnd,y=(0,r.Tt)(v,["transition","transitionEnd"]);d&&(m=d);var b=[],x=p&&(null===(a=t.animationState)||void 0===a?void 0:a.getState()[p]);for(var A in y){var w=t.getValue(A),S=y[A];if(!(!w||void 0===S||x&&f(x,A))){var E=(0,r.Cl)({delay:c},m);t.shouldReduceMotion&&(0,s.wY)(A)&&(E=(0,r.Cl)((0,r.Cl)({},E),{type:!1,delay:0}));var C=(0,o.bM)(A,w,S,E);b.push(C)}}return Promise.all(b).then((function(){g&&(0,i.Uo)(t,g)}))}function d(t){t.forEachValue((function(t){return t.stop()}))}function p(t,e){return t.sortNodePosition(e)}function f(t,e){var n=t.protectedKeys,r=t.needsAnimating,o=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,o}},68883:(t,e,n)=>{"use strict";n.d(e,{TM:()=>x,$z:()=>w,Uo:()=>g,VI:()=>b});var r=n(58932),o=n(88652),i=function(t){return/^\-?\d*\.?\d+$/.test(t)},a=function(t){return/^0[^.\s]+$/.test(t)},s=n(54065),u=n(57181),l=n(852),c=n(45297),d=n(9105),p=n(87245),f=(0,r.fX)((0,r.fX)([],(0,r.zs)(d.T),!1),[c.y,o.f],!1),v=function(t){return f.find((0,p.w)(t))},h=n(86780);function m(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,u.O)(n))}function g(t,e){var n=(0,h.KC)(t,e),o=n?t.makeTargetAnimatable(n,!1):{},i=o.transitionEnd,a=void 0===i?{}:i;o.transition;var u=(0,r.Tt)(o,["transitionEnd","transition"]);for(var l in u=(0,r.Cl)((0,r.Cl)({},u),a)){m(t,l,(0,s.K)(u[l]))}}function y(t,e){(0,r.fX)([],(0,r.zs)(e),!1).reverse().forEach((function(n){var r,o=t.getVariant(n);o&&g(t,o),null===(r=t.variantChildren)||void 0===r||r.forEach((function(t){y(t,e)}))}))}function b(t,e){return Array.isArray(e)?y(t,e):"string"==typeof e?y(t,[e]):void g(t,e)}function x(t,e,n){var r,s,c,d,p=Object.keys(e).filter((function(e){return!t.hasValue(e)})),f=p.length;if(f)for(var h=0;h{"use strict";function r(t){return Array.isArray(t)}function o(t){return"string"==typeof t||r(t)}function i(t,e,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),"string"==typeof e&&(e=null===(i=t.variants)||void 0===i?void 0:i[e]),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),e}function a(t,e,n){var r=t.getProps();return i(r,e,null!=n?n:r.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function s(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||o(t.initial)||o(t.animate)||o(t.whileHover)||o(t.whileDrag)||o(t.whileTap)||o(t.whileFocus)||o(t.exit)}function u(t){return Boolean(s(t)||t.variants)}n.d(e,{F0:()=>u,KC:()=>a,Tp:()=>r,ab:()=>i,rG:()=>s,wf:()=>o})},89442:(t,e,n)=>{"use strict";function r(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{Ai:()=>o,Kq:()=>r})},3908:(t,e,n)=>{"use strict";n.d(e,{B:()=>r});var r="undefined"!=typeof document},54065:(t,e,n)=>{"use strict";n.d(e,{B:()=>o,K:()=>i});var r=n(53372),o=function(t){return Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)},i=function(t){return(0,r.p)(t)?t[t.length-1]||0:t}},41818:(t,e,n)=>{"use strict";n.d(e,{v:()=>o});var r=n(89442),o=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return(0,r.Kq)(this.subscriptions,t),function(){return(0,r.Ai)(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var o=0;o{"use strict";n.d(e,{f:()=>r});var r=function(t){return 1e3*t}},17613:(t,e,n)=>{"use strict";n.d(e,{M:()=>o});var r=n(67308);function o(t){var e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},43892:(t,e,n)=>{"use strict";n.d(e,{E:()=>o});var r=n(67308),o=n(3908).B?r.useLayoutEffect:r.useEffect},57181:(t,e,n)=>{"use strict";n.d(e,{O:()=>s});var r=n(25303),o=n(62031),i=n(41818),a=function(){function t(t){var e,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new i.v,this.velocityUpdateSubscribers=new i.v,this.renderSubscribers=new i.v,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var o=(0,r.KK)(),i=o.delta,a=o.timestamp;n.lastUpdated!==a&&(n.timeDelta=i,n.lastUpdated=a,r.Ay.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return r.Ay.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?(0,o.f)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function s(t){return new a(t)}},94800:(t,e,n)=>{"use strict";n.d(e,{L:()=>q});var r=n(58932);const o=new WeakMap;let i;function a({target:t,contentRect:e,borderBoxSize:n}){var r;null===(r=o.get(t))||void 0===r||r.forEach((r=>{r({target:t,contentSize:e,get size(){return function(t,e){if(e){const{inlineSize:t,blockSize:n}=e[0];return{width:t,height:n}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,n)}})}))}function s(t){t.forEach(a)}function u(t,e){i||"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(s));const n=function(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t);return n.forEach((t=>{let n=o.get(t);n||(n=new Set,o.set(t,n)),n.add(e),null==i||i.observe(t)})),()=>{n.forEach((t=>{const n=o.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==i||i.unobserve(t)}))}}const l=new Set;let c;function d(t){return l.add(t),c||(c=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};l.forEach((t=>t(e)))},window.addEventListener("resize",c)),()=>{l.delete(t),!l.size&&c&&(c=void 0)}}const p=(t,e,n)=>e-t==0?1:(n-t)/(e-t);const f=50,v=()=>({time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}),h={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function m(t,e,n,r){const o=n[e],{length:i,position:a}=h[e],s=o.current,u=n.time;o.current=t["scroll"+a],o.scrollLength=t["scroll"+i]-t["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=p(0,o.scrollLength,o.current);const l=r-u;var c,d;o.velocity=l>f?0:(c=o.current-s,(d=l)?c*(1e3/d):0)}const g=t=>t,y=(t,e,n)=>-n*t+n*e+t;function b(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=p(0,e,r);t.push(y(n,1,o))}}function x(t){const e=[0];return b(e,t-1),e}const A=t=>"number"==typeof t,w=t=>Array.isArray(t)&&!A(t[0]),S=(t,e,n)=>{const r=e-t;return((n-t)%r+r)%r+t};const E=(t,e,n)=>Math.min(Math.max(n,t),e);function C(t,e=x(t.length),n=g){const r=t.length,o=r-e.length;return o>0&&b(e,o),o=>{let i=0;for(;i"string"==typeof t,M={start:0,center:.5,end:1};function P(t,e,n=0){let r=0;if(void 0!==M[t]&&(t=M[t]),V(t)){const e=parseFloat(t);t.endsWith("px")?r=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?r=e/100*document.documentElement.clientWidth:t.endsWith("vh")?r=e/100*document.documentElement.clientHeight:t=e}return A(t)&&(r=e*t),n+r}const R=[0,0];function k(t,e,n,r){let o=Array.isArray(t)?t:R,i=0,a=0;return A(t)?o=[t,t]:V(t)&&(o=(t=t.trim()).includes(" ")?t.split(" "):[t,M[t]?t:"0"]),i=P(o[0],n,r),a=P(o[1],e),i-a}const L={x:0,y:0};function j(t,e,n){let{offset:r=T.All}=n;const{target:o=t,axis:i="y"}=n,a="y"===i?"height":"width",s=o!==t?function(t,e){let n={x:0,y:0},r=t;for(;r&&r!==e;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r instanceof SVGGraphicsElement&&"getBBox"in r){const{top:t,left:e}=r.getBBox();for(n.x+=e,n.y+=t;r&&"svg"!==r.tagName;)r=r.parentNode}return n}(o,t):L,u=o===t?{width:t.scrollWidth,height:t.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},l={width:t.clientWidth,height:t.clientHeight};e[i].offset.length=0;let c=!e[i].interpolate;const d=r.length;for(let p=0;pfunction(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let r=e;for(;r&&r!=t;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,r.target,n),update:e=>{!function(t,e,n){m(t,"x",e,n),m(t,"y",e,n),e.time=n}(t,n,e),(r.offset||r.target)&&j(t,n,r)},notify:"function"==typeof e?()=>e(n):z(e,n[o])}}function z(t,e){return t.pause(),t.forEachNative(((t,{easing:e})=>{var n,r;if(t.updateDuration)e||(t.easing=g),t.updateDuration(1);else{const o={duration:1e3};e||(o.easing="linear"),null===(r=null===(n=t.effect)||void 0===n?void 0:n.updateTiming)||void 0===r||r.call(n,o)}})),()=>{t.currentTime=e.progress}}const I=new WeakMap,D=new WeakMap,B=new WeakMap,F=t=>t===document.documentElement?window:t;function N(t,e={}){var{container:n=document.documentElement}=e,o=(0,r.Tt)(e,["container"]);let i=B.get(n);i||(i=new Set,B.set(n,i));const a=v(),s=O(n,t,a,o);if(i.add(s),!I.has(n)){const t=()=>{const t=performance.now();for(const e of i)e.measure();for(const e of i)e.update(t);for(const e of i)e.notify()};I.set(n,t);const e=F(n);window.addEventListener("resize",t,{passive:!0}),n!==document.documentElement&&D.set(n,(c=t,"function"==typeof(l=n)?d(l):u(l,c))),e.addEventListener("scroll",t,{passive:!0})}var l,c;const p=I.get(n),f=requestAnimationFrame(p);return()=>{var e;"function"!=typeof t&&t.stop(),cancelAnimationFrame(f);const r=B.get(n);if(!r)return;if(r.delete(s),r.size)return;const o=I.get(n);I.delete(n),o&&(F(n).removeEventListener("scroll",o),null===(e=D.get(n))||void 0===e||e(),window.removeEventListener("resize",o))}}var $=n(57181),U=n(17613),W=n(43892),X=function(){return{scrollX:(0,$.O)(0),scrollY:(0,$.O)(0),scrollXProgress:(0,$.O)(0),scrollYProgress:(0,$.O)(0)}};function q(t){void 0===t&&(t={});var e=t.container,n=t.target,o=(0,r.Tt)(t,["container","target"]),i=(0,U.M)(X);return(0,W.E)((function(){return N((function(t){var e=t.x,n=t.y;i.scrollX.set(e.current),i.scrollXProgress.set(e.progress),i.scrollY.set(n.current),i.scrollYProgress.set(n.progress)}),(0,r.Cl)((0,r.Cl)({},o),{container:(null==e?void 0:e.current)||void 0,target:(null==n?void 0:n.current)||void 0}))}),[]),i}},25303:(t,e,n)=>{"use strict";n.d(e,{eO:()=>f,Ay:()=>b,qX:()=>v,KK:()=>y});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),i="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);let a=!0,s=!1,u=!1;const l={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],d=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const u=s&&o,l=u?e:n;return i&&a.add(t),-1===l.indexOf(t)&&(l.push(t),u&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),a.delete(t)},process:u=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;ns=!0)),t)),{}),p=c.reduce(((t,e)=>{const n=d[e];return t[e]=(t,e=!1,r=!1)=>(s||g(),n.schedule(t,e,r)),t}),{}),f=c.reduce(((t,e)=>(t[e]=d[e].cancel,t)),{}),v=c.reduce(((t,e)=>(t[e]=()=>d[e].process(l),t)),{}),h=t=>d[t].process(l),m=t=>{s=!1,l.delta=a?r:Math.max(Math.min(t-l.timestamp,40),1),l.timestamp=t,u=!0,c.forEach(h),u=!1,s&&(a=!1,i(m))},g=()=>{s=!0,a=!0,u||i(m)},y=()=>l,b=p},63543:(t,e,n)=>{"use strict";n.d(e,{bt:()=>b,dg:()=>m,ZZ:()=>y,Sz:()=>g,ip:()=>E,wm:()=>C,Te:()=>S,po:()=>f,tn:()=>h,yT:()=>v,a6:()=>l,am:()=>p,vT:()=>d,sn:()=>u});const r=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i=t=>e=>e*e*((t+1)*e-t),a=4/11,s=8/11,u=t=>t,l=(c=2,t=>Math.pow(t,c));var c;const d=r(l),p=o(l),f=t=>1-Math.sin(Math.acos(t)),v=r(f),h=o(v),m=i(1.525),g=r(m),y=o(m),b=(t=>{const e=i(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),x=4356/361,A=35442/1805,w=16061/1805,S=t=>{if(1===t||0===t)return t;const e=t*t;return tt<.5?.5*(1-S(1-2*t)):.5*S(2*t-1)+.5},1858:(t,e,n)=>{"use strict";n.d(e,{q:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},49635:(t,e,n)=>{"use strict";n.d(e,{T:()=>r});const r=t=>"number"==typeof t},96661:(t,e,n)=>{"use strict";n.d(e,{j:()=>r});const r=(t,e,n)=>-n*t+n*e+t},16173:(t,e,n)=>{"use strict";n.d(e,{F:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},34300:(t,e,n)=>{"use strict";n.d(e,{q:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},62031:(t,e,n)=>{"use strict";function r(t,e){return e?t*(1e3/e):0}n.d(e,{f:()=>r})},46166:(t,e,n)=>{"use strict";n.d(e,{u:()=>o});var r=n(28193);const o={test:(0,n(25270).$)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.B.transform}},51205:(t,e,n)=>{"use strict";n.d(e,{V:()=>s});var r=n(88886),o=n(95639),i=n(63050),a=n(25270);const s={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:a=1})=>"hsla("+Math.round(t)+", "+o.KN.transform((0,i.aj)(e))+", "+o.KN.transform((0,i.aj)(n))+", "+(0,i.aj)(r.X4.transform(a))+")"}},45297:(t,e,n)=>{"use strict";n.d(e,{y:()=>s});var r=n(63050),o=n(46166),i=n(51205),a=n(28193);const s={test:t=>a.B.test(t)||o.u.test(t)||i.V.test(t),parse:t=>a.B.test(t)?a.B.parse(t):i.V.test(t)?i.V.parse(t):o.u.parse(t),transform:t=>(0,r.Kg)(t)?t:t.hasOwnProperty("red")?a.B.transform(t):i.V.transform(t)}},28193:(t,e,n)=>{"use strict";n.d(e,{B:()=>u});var r=n(88886),o=n(63050),i=n(25270);const a=(0,o.qE)(0,255),s=Object.assign(Object.assign({},r.ai),{transform:t=>Math.round(a(t))}),u={test:(0,i.$)("rgb","red"),parse:(0,i.q)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+s.transform(t)+", "+s.transform(e)+", "+s.transform(n)+", "+(0,o.aj)(r.X4.transform(i))+")"}},25270:(t,e,n)=>{"use strict";n.d(e,{$:()=>o,q:()=>i});var r=n(63050);const o=(t,e)=>n=>Boolean((0,r.Kg)(n)&&r.Fl.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),i=(t,e,n)=>o=>{if(!(0,r.Kg)(o))return o;const[i,a,s,u]=o.match(r.SY);return{[t]:parseFloat(i),[e]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==u?parseFloat(u):1}}},41026:(t,e,n)=>{"use strict";n.d(e,{p:()=>u});var r=n(88652),o=n(63050);const i=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.SY)||[];if(!r)return t;const a=n.replace(r,"");let s=i.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+a+")"}const s=/([a-z-]*)\(.*?\)/g,u=Object.assign(Object.assign({},r.f),{getAnimatableNone:t=>{const e=t.match(s);return e?e.map(a).join(" "):t}})},88652:(t,e,n)=>{"use strict";n.d(e,{f:()=>p});var r=n(45297),o=n(88886),i=n(63050);const a="${c}",s="${n}";function u(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const u=t.match(i.ne);u&&(n=u.length,t=t.replace(i.ne,a),e.push(...u.map(r.y.parse)));const l=t.match(i.SY);return l&&(t=t.replace(i.SY,s),e.push(...l.map(o.ai.parse))),{values:e,numColors:n,tokenised:t}}function l(t){return u(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=u(t),l=e.length;return t=>{let e=o;for(let o=0;o"number"==typeof t?0:t;const p={test:function(t){var e,n,r,o;return isNaN(t)&&(0,i.Kg)(t)&&(null!==(n=null===(e=t.match(i.SY))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(i.ne))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:l,createTransformer:c,getAnimatableNone:function(t){const e=l(t);return c(t)(e.map(d))}}},88886:(t,e,n)=>{"use strict";n.d(e,{X4:()=>i,ai:()=>o,hs:()=>a});var r=n(63050);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},i=Object.assign(Object.assign({},o),{transform:(0,r.qE)(0,1)}),a=Object.assign(Object.assign({},o),{default:1})},95639:(t,e,n)=>{"use strict";n.d(e,{KN:()=>a,gQ:()=>c,px:()=>s,uj:()=>i,vh:()=>u,vw:()=>l});var r=n(63050);const o=t=>({test:e=>(0,r.Kg)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),i=o("deg"),a=o("%"),s=o("px"),u=o("vh"),l=o("vw"),c=Object.assign(Object.assign({},a),{parse:t=>a.parse(t)/100,transform:t=>a.transform(100*t)})},63050:(t,e,n)=>{"use strict";n.d(e,{Fl:()=>s,Kg:()=>u,SY:()=>i,aj:()=>o,ne:()=>a,qE:()=>r});const r=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,i=/(-)?([\d]*\.?[\d])+/g,a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,s=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function u(t){return"string"==typeof t}},58932:(t,e,n)=>{"use strict";n.d(e,{C6:()=>o,Cl:()=>i,Tt:()=>a,fX:()=>u,zs:()=>s});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o{t.d(n,{xA:()=>c,yg:()=>f});var r=t(67308);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{$:()=>y});var r=t(29093),a=t(57089),o=t(1434),i=t(75768),s=t(67308),p=t(8426);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(37782),a=t(32345),o=(t(67308),t(62757)),i=t(67137),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.23-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.23-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.23-alpha/",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.23-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.A)(e,s);return(0,o.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"getting-started"},"Getting Started"),(0,o.yg)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.yg)("sub",null,(0,o.yg)("sub",null,"\ud83d\udce6",(0,o.yg)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.yg)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.yg)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.yg)("code",null,"npm install arktype"),(0,o.yg)("sub",null,"(or whatever package manager you prefer)"),(0,o.yg)("br",null),(0,o.yg)("p",null,"Our types are tested in ",(0,o.yg)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.yg)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.yg)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.yg)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.yg)("p",null,(0,o.yg)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.yg)("h2",{id:"your-first-type"},"Your first type"),(0,o.yg)(i.$,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/37b029e4.deed7f78.js b/assets/js/37b029e4.deed7f78.js deleted file mode 100644 index bd4901b3fa..0000000000 --- a/assets/js/37b029e4.deed7f78.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1113],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(19982),a=t(60024),o=t(53800),i=t(49361),s=t(29901),p=t(43346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(73268),a=t(68039),o=(t(29901),t(57522)),i=t(4941),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.23-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.23-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.23-alpha/",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.23-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/39fabe63.6d5041e5.js b/assets/js/39fabe63.6d5041e5.js deleted file mode 100644 index f19bba8508..0000000000 --- a/assets/js/39fabe63.6d5041e5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[309],{57522:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>y});var r=n(29901);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=r.createContext({}),f=function(e){var t=r.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=f(e.components);return r.createElement(d.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,d=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),c=f(n),u=i,y=c["".concat(d,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var l={};for(var d in t)hasOwnProperty.call(t,d)&&(l[d]=t[d]);l.originalType=e,l[c]="string"==typeof e?e:i,o[1]=l;for(var f=2;f{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>y,frontMatter:()=>l,metadata:()=>f,toc:()=>c});var r=n(73268),i=n(68039),a=(n(29901),n(57522)),o=["components"],l={hide_table_of_contents:!0},d="validateDefinition",f={unversionedId:"api/validatedefinition",id:"version-1.0.26-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.26-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/1.0.26-alpha/api/validatedefinition",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.Z)(e,o);return(0,a.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/39fabe63.6fd3259f.js b/assets/js/39fabe63.6fd3259f.js new file mode 100644 index 0000000000..3cb3dc1101 --- /dev/null +++ b/assets/js/39fabe63.6fd3259f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8178],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>y});var r=n(67308);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=r.createContext({}),f=function(e){var t=r.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=f(e.components);return r.createElement(d.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,d=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),c=f(n),u=i,y=c["".concat(d,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var l={};for(var d in t)hasOwnProperty.call(t,d)&&(l[d]=t[d]);l.originalType=e,l[c]="string"==typeof e?e:i,o[1]=l;for(var f=2;f{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>y,frontMatter:()=>l,metadata:()=>f,toc:()=>c});var r=n(37782),i=n(32345),a=(n(67308),n(62757)),o=["components"],l={hide_table_of_contents:!0},d="validateDefinition",f={unversionedId:"api/validatedefinition",id:"version-1.0.26-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.26-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/1.0.26-alpha/api/validatedefinition",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.A)(e,o);return(0,a.yg)(u,(0,r.A)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3a4716de.5589f33a.js b/assets/js/3a4716de.5589f33a.js deleted file mode 100644 index 541ebe2bb4..0000000000 --- a/assets/js/3a4716de.5589f33a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4910],{57522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var o=a.createContext({}),d=function(t){var e=a.useContext(o),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},m=function(t){var e=d(t.components);return a.createElement(o.Provider,{value:e},t.children)},u="mdxType",s={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},c=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,m=p(t,["components","mdxType","originalType","parentName"]),u=d(n),c=r,k=u["".concat(o,".").concat(c)]||u[c]||s[c]||l;return n?a.createElement(k,i(i({ref:e},m),{},{components:n})):a.createElement(k,i({ref:e},m))}));function k(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=c;var p={};for(var o in e)hasOwnProperty.call(e,o)&&(p[o]=e[o]);p.originalType=t,p[u]="string"==typeof t?t:r,i[1]=p;for(var d=2;d{n.r(e),n.d(e,{assets:()=>m,contentTitle:()=>o,default:()=>k,frontMatter:()=>p,metadata:()=>d,toc:()=>u});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.21-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.21-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.21-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},m={},u=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],s={toc:u},c="wrapper";function k(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(c,(0,a.Z)({},s,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"validationscope"},"validationScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3a4716de.92df0a0d.js b/assets/js/3a4716de.92df0a0d.js new file mode 100644 index 0000000000..97dd3c6177 --- /dev/null +++ b/assets/js/3a4716de.92df0a0d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1188],{62757:(e,t,n)=>{n.d(t,{xA:()=>d,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=a.createContext({}),g=function(e){var t=a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=g(e.components);return a.createElement(o.Provider,{value:t},e.children)},y="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,d=p(e,["components","mdxType","originalType","parentName"]),y=g(n),u=r,s=y["".concat(o,".").concat(u)]||y[u]||m[u]||l;return n?a.createElement(s,i(i({ref:t},d),{},{components:n})):a.createElement(s,i({ref:t},d))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=u;var p={};for(var o in t)hasOwnProperty.call(t,o)&&(p[o]=t[o]);p.originalType=e,p[y]="string"==typeof e?e:r,i[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>s,frontMatter:()=>p,metadata:()=>g,toc:()=>y});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",g={unversionedId:"api/validationscope",id:"version-1.0.21-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.21-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.21-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},d={},y=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],m={toc:y},u="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,i);return(0,l.yg)(u,(0,a.A)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"validationscope"},"validationScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3a7be745.f9636178.js b/assets/js/3a7be745.dde7358c.js similarity index 81% rename from assets/js/3a7be745.f9636178.js rename to assets/js/3a7be745.dde7358c.js index f360348188..11da7ea1cf 100644 --- a/assets/js/3a7be745.f9636178.js +++ b/assets/js/3a7be745.dde7358c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7919],{57522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.27-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.27-alpha/api/infer",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"infer"},"Infer"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4833],{62757:(e,t,r)=>{r.d(t,{xA:()=>f,yg:()=>m});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.27-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.27-alpha/api/infer",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(y,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"infer"},"Infer"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3bd62677.40027de5.js b/assets/js/3bd62677.40027de5.js new file mode 100644 index 0000000000..4c4dcff47d --- /dev/null +++ b/assets/js/3bd62677.40027de5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8420],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),g=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},y=function(e){var t=g(e.components);return r.createElement(i.Provider,{value:t},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=g(n),u=a,m=c["".concat(i,".").concat(u)]||c[u]||d[u]||l;return n?r.createElement(m,o(o({ref:t},y),{},{components:n})):r.createElement(m,o({ref:t},y))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,o=new Array(l);o[0]=u;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>g,toc:()=>c});var r=n(37782),a=n(32345),l=(n(67308),n(62757)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",g={unversionedId:"api/jsobjectsscope",id:"version-1.0.25-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.25-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"text",id:"text",level:2}],d={toc:c},u="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,o);return(0,l.yg)(u,(0,r.A)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3bd62677.6609f82a.js b/assets/js/3bd62677.6609f82a.js deleted file mode 100644 index 011e412676..0000000000 --- a/assets/js/3bd62677.6609f82a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8461],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(73268),a=n(68039),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.25-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.25-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3c1eb414.db7024b4.js b/assets/js/3c1eb414.db7024b4.js new file mode 100644 index 0000000000..d3a306ba7d --- /dev/null +++ b/assets/js/3c1eb414.db7024b4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9374],{62757:(e,n,t)=>{t.d(n,{xA:()=>s,yg:()=>m});var r=t(67308);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var l=r.createContext({}),c=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},s=function(e){var n=c(e.components);return r.createElement(l.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=c(t),f=a,m=u["".concat(l,".").concat(f)]||u[f]||d[f]||o;return t?r.createElement(m,i(i({ref:n},s),{},{components:t})):r.createElement(m,i({ref:n},s))}));function m(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var c=2;c{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=t(37782),a=t(32345),o=(t(67308),t(62757)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",c={unversionedId:"api/precompileddefaults",id:"version-1.0.24-alpha/api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/1.0.24-alpha/api/precompileddefaults",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,a.A)(e,i);return(0,o.yg)(f,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => unknown\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3c1eb414.db9b0467.js b/assets/js/3c1eb414.db9b0467.js deleted file mode 100644 index 8eb371f065..0000000000 --- a/assets/js/3c1eb414.db9b0467.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5688],{57522:(e,n,t)=>{t.d(n,{Zo:()=>s,kt:()=>m});var r=t(29901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var l=r.createContext({}),c=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},s=function(e){var n=c(e.components);return r.createElement(l.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=c(t),f=a,m=u["".concat(l,".").concat(f)]||u[f]||d[f]||o;return t?r.createElement(m,i(i({ref:n},s),{},{components:t})):r.createElement(m,i({ref:n},s))}));function m(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var c=2;c{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=t(73268),a=t(68039),o=(t(29901),t(57522)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",c={unversionedId:"api/precompileddefaults",id:"version-1.0.24-alpha/api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/1.0.24-alpha/api/precompileddefaults",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,a.Z)(e,i);return(0,o.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => unknown\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3c3913a6.8a396fa8.js b/assets/js/3c3913a6.8a396fa8.js new file mode 100644 index 0000000000..c41ec5538f --- /dev/null +++ b/assets/js/3c3913a6.8a396fa8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[916],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},s=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},d=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(t),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return t?n.createElement(f,c(c({ref:r},s),{},{components:t})):n.createElement(f,c({ref:r},s))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,c=new Array(a);c[0]=d;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.22-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.22-alpha/api/problem",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,c);return(0,a.yg)(d,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"problem"},"Problem"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3c3913a6.a34971a7.js b/assets/js/3c3913a6.a34971a7.js deleted file mode 100644 index 2183c857b0..0000000000 --- a/assets/js/3c3913a6.a34971a7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9293],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.22-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.22-alpha/api/problem",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3c576763.f81d6f25.js b/assets/js/3c576763.d2df5ecd.js similarity index 66% rename from assets/js/3c576763.f81d6f25.js rename to assets/js/3c576763.d2df5ecd.js index 978dbffe8a..9ba3c211ab 100644 --- a/assets/js/3c576763.f81d6f25.js +++ b/assets/js/3c576763.d2df5ecd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1749],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>m});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,m=f["".concat(l,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(m,p(p({ref:t},u),{},{components:r})):n.createElement(m,p({ref:t},u))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[f]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>f});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/docs/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/next/api/parseconfigtuple",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],s={toc:f},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/next/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9933],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>g});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,g=f["".concat(l,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(g,p(p({ref:t},u),{},{components:r})):n.createElement(g,p({ref:t},u))}));function g(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[f]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>g,frontMatter:()=>i,metadata:()=>c,toc:()=>f});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/docs/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/next/api/parseconfigtuple",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],s={toc:f},y="wrapper";function g(e){var t=e.components,r=(0,o.A)(e,p);return(0,a.yg)(y,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/next/api/parseconfigtuple"},":"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["type", ":", config]')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3ca54c20.af2dc085.js b/assets/js/3ca54c20.a69bd57c.js similarity index 74% rename from assets/js/3ca54c20.af2dc085.js rename to assets/js/3ca54c20.a69bd57c.js index 662c31e4db..18728673be 100644 --- a/assets/js/3ca54c20.af2dc085.js +++ b/assets/js/3ca54c20.a69bd57c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2065],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(73268),o=t(68039),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.19-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.19-alpha/api/scope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8650],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),y=o,f=u["".concat(p,".").concat(y)]||u[y]||d[y]||s;return t?r.createElement(f,a(a({ref:n},l),{},{components:t})):r.createElement(f,a({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=y;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(37782),o=t(32345),s=(t(67308),t(62757)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.19-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.19-alpha/api/scope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},y="wrapper";function f(e){var n=e.components,t=(0,o.A)(e,a);return(0,s.yg)(y,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.yg)("h1",{id:"scope"},"scope"),(0,s.yg)("h2",{id:"text"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.yg)("hr",null),(0,s.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.yg)("h1",{id:"scope-1"},"Scope"),(0,s.yg)("h2",{id:"text-1"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3cd667ef.5bd5235e.js b/assets/js/3cd667ef.5bd5235e.js new file mode 100644 index 0000000000..8f38fac1a8 --- /dev/null +++ b/assets/js/3cd667ef.5bd5235e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9823],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{$:()=>y});var r=t(29093),o=t(57089),a=t(1434),i=t(75768),s=t(67308),p=t(8426);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(37782),o=t(32345),a=(t(67308),t(62757)),i=t(67137),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.23-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.23-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/1.0.23-alpha/scopes",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/1.0.23-alpha/"},next:{title:"Keywords",permalink:"/docs/1.0.23-alpha/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.A)(e,s);return(0,a.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"scopes"},"Scopes"),(0,a.yg)(i.$,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3cd667ef.86c13ce5.js b/assets/js/3cd667ef.86c13ce5.js deleted file mode 100644 index 53c912c13f..0000000000 --- a/assets/js/3cd667ef.86c13ce5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2719],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{g:()=>y});var r=t(19982),o=t(60024),a=t(53800),i=t(49361),s=t(29901),p=t(43346);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(73268),o=t(68039),a=(t(29901),t(57522)),i=t(4941),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.23-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.23-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/1.0.23-alpha/scopes",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/1.0.23-alpha/"},next:{title:"Keywords",permalink:"/docs/1.0.23-alpha/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.Z)(e,s);return(0,a.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"scopes"},"Scopes"),(0,a.kt)(i.g,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3da5c09b.e8ae7250.js b/assets/js/3da5c09b.3931a904.js similarity index 83% rename from assets/js/3da5c09b.e8ae7250.js rename to assets/js/3da5c09b.3931a904.js index c25bd7feb5..39a21e613f 100644 --- a/assets/js/3da5c09b.e8ae7250.js +++ b/assets/js/3da5c09b.3931a904.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6751],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>y});var r=t(29901);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(73268),i=t(68039),o=(t(29901),t(57522)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.24-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/1.0.24-alpha/api/inferdefinition",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.Z)(e,a);return(0,o.kt)(u,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7536],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>y});var r=t(67308);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(37782),i=t(32345),o=(t(67308),t(62757)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.24-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/1.0.24-alpha/api/inferdefinition",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.A)(e,a);return(0,o.yg)(u,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3e74f845.01da4a46.js b/assets/js/3e74f845.95f9edee.js similarity index 67% rename from assets/js/3e74f845.01da4a46.js rename to assets/js/3e74f845.95f9edee.js index eb7a66a9b5..e533dec9ab 100644 --- a/assets/js/3e74f845.01da4a46.js +++ b/assets/js/3e74f845.95f9edee.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1567],{57522:(e,t,r)=>{r.d(t,{Zo:()=>l,kt:()=>y});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),d=o,y=u["".concat(s,".").concat(d)]||u[d]||f[d]||a;return r?n.createElement(y,i(i({ref:t},l),{},{components:r})):n.createElement(y,i({ref:t},l))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=d;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.23-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.23-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.23-alpha/api",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.23-alpha/api/operators"}},l={},u=[],f={toc:u},d="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(d,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8745],{62757:(e,t,r)=>{r.d(t,{xA:()=>l,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),f=o,d=u["".concat(s,".").concat(f)]||u[f]||y[f]||a;return r?n.createElement(d,i(i({ref:t},l),{},{components:r})):n.createElement(d,i({ref:t},l))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=f;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.23-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.23-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.23-alpha/api",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.23-alpha/api/operators"}},l={},u=[],y={toc:u},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"api"},"API"),(0,a.yg)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.yg)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.yg)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3ea57330.fd9bc2b3.js b/assets/js/3ea57330.a32961c5.js similarity index 81% rename from assets/js/3ea57330.fd9bc2b3.js rename to assets/js/3ea57330.a32961c5.js index 834cc3b60a..e4d9e94afc 100644 --- a/assets/js/3ea57330.fd9bc2b3.js +++ b/assets/js/3ea57330.a32961c5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6963],{57522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.24-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.24-alpha/api/infer",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"infer"},"Infer"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5266],{62757:(e,t,r)=>{r.d(t,{xA:()=>f,yg:()=>m});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.24-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.24-alpha/api/infer",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(y,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"infer"},"Infer"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3f475d74.2be3fda4.js b/assets/js/3f475d74.2be3fda4.js deleted file mode 100644 index 98e5c35bc5..0000000000 --- a/assets/js/3f475d74.2be3fda4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[663],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>b});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),i=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},s=function(e){var t=i(e.components);return n.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(r),f=o,b=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return r?n.createElement(b,l(l({ref:t},s),{},{components:r})):n.createElement(b,l({ref:t},s))}));function b(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var p={};for(var c in t)hasOwnProperty.call(t,c)&&(p[c]=t[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>c,default:()=>b,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.27-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/1.0.27-alpha/api/problems",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function b(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problems"},"Problems"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}b.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3f475d74.9ea73437.js b/assets/js/3f475d74.9ea73437.js new file mode 100644 index 0000000000..1545404766 --- /dev/null +++ b/assets/js/3f475d74.9ea73437.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2517],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=n.createContext({}),i=function(e){var r=n.useContext(c),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},s=function(e){var r=i(e.components);return n.createElement(c.Provider,{value:r},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(t),f=o,y=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return t?n.createElement(y,l(l({ref:r},s),{},{components:t})):n.createElement(y,l({ref:r},s))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var p={};for(var c in r)hasOwnProperty.call(r,c)&&(p[c]=r[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.27-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/1.0.27-alpha/api/problems",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"problems"},"Problems"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/402d9ac3.7e0882f5.js b/assets/js/402d9ac3.7e0882f5.js deleted file mode 100644 index 55c37c11e4..0000000000 --- a/assets/js/402d9ac3.7e0882f5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1464],{57522:(t,e,a)=>{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var o=n.createContext({}),d=function(t){var e=n.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):p(p({},e),t)),a},u=function(t){var e=d(t.components);return n.createElement(o.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(a),c=r,s=m["".concat(o,".").concat(c)]||m[c]||k[c]||l;return a?n.createElement(s,p(p({ref:e},u),{},{components:a})):n.createElement(s,p({ref:e},u))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,p=new Array(l);p[0]=c;var i={};for(var o in e)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i[m]="string"==typeof t?t:r,p[1]=i;for(var d=2;d{a.r(e),a.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var n=a(73268),r=a(68039),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.23-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.23-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.23-alpha/api/operators",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.23-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.23-alpha/api"}},u={},m=[{value:"Operating Table",id:"operating-table",level:2}],k={toc:m},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,p);return(0,l.kt)(c,(0,n.Z)({},k,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"operators"},"Operators"),(0,l.kt)("h2",{id:"operating-table"},"Operating Table"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"operator"),(0,l.kt)("th",{parentName:"tr",align:null},"string"),(0,l.kt)("th",{parentName:"tr",align:null},"tuple"),(0,l.kt)("th",{parentName:"tr",align:null},"helper"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/arrayof"},"arrayOf")),(0,l.kt)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.kt)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.kt)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/instanceof"},"instanceOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/intersection"},"&")),(0,l.kt)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.kt)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/keyof"},"keyOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.kt)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/morph"},"|",">")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.kt)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/narrow"},"=>")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/union"},"|")),(0,l.kt)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.kt)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/valueof"},"===")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/parseconfigtuple"},":")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{a.d(t,{xA:()=>y,yg:()=>c});var n=a(67308);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),g=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},y=function(e){var t=g(e.components);return n.createElement(o.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),d=g(a),m=r,c=d["".concat(o,".").concat(m)]||d[m]||u[m]||l;return a?n.createElement(c,p(p({ref:t},y),{},{components:a})):n.createElement(c,p({ref:t},y))}));function c(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[d]="string"==typeof e?e:r,p[1]=i;for(var g=2;g{a.r(t),a.d(t,{assets:()=>y,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var n=a(37782),r=a(32345),l=(a(67308),a(62757)),p=["components"],i={hide_table_of_contents:!0},o="Operators",g={unversionedId:"api/operators",id:"version-1.0.23-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.23-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.23-alpha/api/operators",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.23-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.23-alpha/api"}},y={},d=[{value:"Operating Table",id:"operating-table",level:2}],u={toc:d},m="wrapper";function c(e){var t=e.components,a=(0,r.A)(e,p);return(0,l.yg)(m,(0,n.A)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"operators"},"Operators"),(0,l.yg)("h2",{id:"operating-table"},"Operating Table"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"operator"),(0,l.yg)("th",{parentName:"tr",align:null},"string"),(0,l.yg)("th",{parentName:"tr",align:null},"tuple"),(0,l.yg)("th",{parentName:"tr",align:null},"helper"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/arrayof"},"arrayOf")),(0,l.yg)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.yg)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.yg)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/instanceof"},"instanceOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/intersection"},"&")),(0,l.yg)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.yg)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/keyof"},"keyOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.yg)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/morph"},"|",">")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.yg)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/narrow"},"=>")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/union"},"|")),(0,l.yg)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.yg)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/valueof"},"===")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/parseconfigtuple"},":")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.23-alpha/api/validatebound"},"bound")),(0,l.yg)("td",{parentName:"tr",align:null},'"N{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var o=n.createContext({}),d=function(t){var e=n.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):p(p({},e),t)),a},u=function(t){var e=d(t.components);return n.createElement(o.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(a),c=r,s=m["".concat(o,".").concat(c)]||m[c]||k[c]||l;return a?n.createElement(s,p(p({ref:e},u),{},{components:a})):n.createElement(s,p({ref:e},u))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,p=new Array(l);p[0]=c;var i={};for(var o in e)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i[m]="string"==typeof t?t:r,p[1]=i;for(var d=2;d{a.r(e),a.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var n=a(73268),r=a(68039),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.19-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.19-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.19-alpha/api/operators",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.19-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.19-alpha/api"}},u={},m=[{value:"Operating Table",id:"operating-table",level:2}],k={toc:m},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,p);return(0,l.kt)(c,(0,n.Z)({},k,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"operators"},"Operators"),(0,l.kt)("h2",{id:"operating-table"},"Operating Table"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"operator"),(0,l.kt)("th",{parentName:"tr",align:null},"string"),(0,l.kt)("th",{parentName:"tr",align:null},"tuple"),(0,l.kt)("th",{parentName:"tr",align:null},"helper"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/arrayof"},"arrayOf")),(0,l.kt)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.kt)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.kt)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/instanceof"},"instanceOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/intersection"},"&")),(0,l.kt)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.kt)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/keyof"},"keyOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.kt)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/morph"},"|",">")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.kt)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/narrow"},"=>")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/union"},"|")),(0,l.kt)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.kt)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/valueof"},"===")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/parseconfigtuple"},":")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{a.d(t,{xA:()=>y,yg:()=>c});var n=a(67308);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),g=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},y=function(e){var t=g(e.components);return n.createElement(o.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),d=g(a),m=r,c=d["".concat(o,".").concat(m)]||d[m]||u[m]||l;return a?n.createElement(c,p(p({ref:t},y),{},{components:a})):n.createElement(c,p({ref:t},y))}));function c(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[d]="string"==typeof e?e:r,p[1]=i;for(var g=2;g{a.r(t),a.d(t,{assets:()=>y,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var n=a(37782),r=a(32345),l=(a(67308),a(62757)),p=["components"],i={hide_table_of_contents:!0},o="Operators",g={unversionedId:"api/operators",id:"version-1.0.19-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.19-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.19-alpha/api/operators",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.19-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.19-alpha/api"}},y={},d=[{value:"Operating Table",id:"operating-table",level:2}],u={toc:d},m="wrapper";function c(e){var t=e.components,a=(0,r.A)(e,p);return(0,l.yg)(m,(0,n.A)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"operators"},"Operators"),(0,l.yg)("h2",{id:"operating-table"},"Operating Table"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"operator"),(0,l.yg)("th",{parentName:"tr",align:null},"string"),(0,l.yg)("th",{parentName:"tr",align:null},"tuple"),(0,l.yg)("th",{parentName:"tr",align:null},"helper"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/arrayof"},"arrayOf")),(0,l.yg)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.yg)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.yg)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/instanceof"},"instanceOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/intersection"},"&")),(0,l.yg)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.yg)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/keyof"},"keyOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.yg)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/morph"},"|",">")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.yg)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/narrow"},"=>")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/union"},"|")),(0,l.yg)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.yg)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/valueof"},"===")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/parseconfigtuple"},":")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/validatebound"},"bound")),(0,l.yg)("td",{parentName:"tr",align:null},'"N{r.d(n,{xA:()=>l,yg:()=>g});var t=r(67308);function a(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=a,g=u["".concat(c,".").concat(m)]||u[m]||f[m]||o;return r?t.createElement(g,i(i({ref:n},l),{},{components:r})):t.createElement(g,i({ref:n},l))}));function g(e,n){var r=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>g,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(37782),a=r(32345),o=(r(67308),r(62757)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.19-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.19-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function g(e){var n=e.components,r=(0,a.A)(e,i);return(0,o.yg)(m,(0,t.A)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"arkscope"},"arkScope"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/412eae58.cedaaf66.js b/assets/js/412eae58.cedaaf66.js deleted file mode 100644 index 281f9f6b7b..0000000000 --- a/assets/js/412eae58.cedaaf66.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7625],{57522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(29901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.19-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.19-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/422620c1.343e1555.js b/assets/js/422620c1.343e1555.js deleted file mode 100644 index dafc08591c..0000000000 --- a/assets/js/422620c1.343e1555.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5180],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(r),v=a,f=u["".concat(p,".").concat(v)]||u[v]||d[v]||o;return r?n.createElement(f,i(i({ref:t},s),{},{components:r})):n.createElement(f,i({ref:t},s))}));function f(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=v;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),i=["components"],l={hide_table_of_contents:!0},p="validateDivisor",c={unversionedId:"api/validatedivisor",id:"version-1.0.24-alpha/api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/1.0.24-alpha/api/validatedivisor",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},v="wrapper";function f(e){var t=e.components,r=(0,a.Z)(e,i);return(0,o.kt)(v,(0,n.Z)({},d,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatedivisor"},"validateDivisor"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/validatedivisor"},"%"))),(0,o.kt)("h2",{id:"string"},"string"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/422620c1.68b9e2ee.js b/assets/js/422620c1.68b9e2ee.js new file mode 100644 index 0000000000..a317d97090 --- /dev/null +++ b/assets/js/422620c1.68b9e2ee.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[507],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>f});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):i(i({},r),e)),t},s=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},v=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(t),v=a,f=u["".concat(p,".").concat(v)]||u[v]||d[v]||o;return t?n.createElement(f,i(i({ref:r},s),{},{components:t})):n.createElement(f,i({ref:r},s))}));function f(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=v;var l={};for(var p in r)hasOwnProperty.call(r,p)&&(l[p]=r[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var c=2;c{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),i=["components"],l={hide_table_of_contents:!0},p="validateDivisor",c={unversionedId:"api/validatedivisor",id:"version-1.0.24-alpha/api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/1.0.24-alpha/api/validatedivisor",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},v="wrapper";function f(e){var r=e.components,t=(0,a.A)(e,i);return(0,o.yg)(v,(0,n.A)({},d,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"validatedivisor"},"validateDivisor"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/validatedivisor"},"%"))),(0,o.yg)("h2",{id:"string"},"string"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/431f3670.41bce825.js b/assets/js/431f3670.41bce825.js new file mode 100644 index 0000000000..912f0758e9 --- /dev/null +++ b/assets/js/431f3670.41bce825.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9867],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),y=c(r),f=o,d=y["".concat(l,".").concat(f)]||y[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[y]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>y});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.19-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.19-alpha/api/type",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],s={toc:y},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,p);return(0,a.yg)(f,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"type"},"type"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.yg)("hr",null),(0,a.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.yg)("h1",{id:"type-1"},"Type"),(0,a.yg)("h2",{id:"text-1"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/446de14b.553a63cc.js b/assets/js/446de14b.553a63cc.js new file mode 100644 index 0000000000..f2e24165d8 --- /dev/null +++ b/assets/js/446de14b.553a63cc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[937],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=n.createContext({}),c=function(e){var r=n.useContext(l),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(l.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(t),y=o,g=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return t?n.createElement(g,p(p({ref:r},u),{},{components:t})):n.createElement(g,p({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=y;var i={};for(var l in r)hasOwnProperty.call(r,l)&&(i[l]=r[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>l,default:()=>g,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.25-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.25-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/parseconfigtuple"},":"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["type", ":", config]')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/446de14b.cbf633be.js b/assets/js/446de14b.cbf633be.js deleted file mode 100644 index 1d3c814302..0000000000 --- a/assets/js/446de14b.cbf633be.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[570],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.25-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.25-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/44abb010.19c9f1f2.js b/assets/js/44abb010.7aadb333.js similarity index 53% rename from assets/js/44abb010.19c9f1f2.js rename to assets/js/44abb010.7aadb333.js index 130eca2880..d8395cc20e 100644 --- a/assets/js/44abb010.19c9f1f2.js +++ b/assets/js/44abb010.7aadb333.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2087],{57522:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(29901);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=o,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||a;return t?n.createElement(d,l(l({ref:r},u),{},{components:t})):n.createElement(d,l({ref:r},u))}));function d(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=m;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[s]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>s});var n=t(73268),o=t(68039),a=(t(29901),t(57522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"api/narrow",title:"narrow",description:"operator",source:"@site/docs/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/next/api/narrow",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],f={toc:s},m="wrapper";function d(e){var r=e.components,t=(0,o.Z)(e,l);return(0,a.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"narrow"},"narrow"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/next/api/narrow"},"=>"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"example"},"example"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8371],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),f=o,m=y["".concat(i,".").concat(f)]||y[f]||s[f]||a;return t?n.createElement(m,l(l({ref:r},u),{},{components:t})):n.createElement(m,l({ref:r},u))}));function m(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"api/narrow",title:"narrow",description:"operator",source:"@site/docs/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/next/api/narrow",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],s={toc:y},f="wrapper";function m(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"narrow"},"narrow"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/next/api/narrow"},"=>"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"example"},"example"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("pre",{parentName:"li"},(0,a.yg)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/44ad23ca.17b6ad8c.js b/assets/js/44ad23ca.17b6ad8c.js deleted file mode 100644 index 6f30cb1fba..0000000000 --- a/assets/js/44ad23ca.17b6ad8c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2078],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.26-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.26-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.26-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/44ad23ca.194e4f1b.js b/assets/js/44ad23ca.194e4f1b.js new file mode 100644 index 0000000000..cb678aee64 --- /dev/null +++ b/assets/js/44ad23ca.194e4f1b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2453],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var y=a.createContext({}),g=function(e){var t=a.useContext(y),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=g(e.components);return a.createElement(y.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,y=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),d=g(n),m=r,s=d["".concat(y,".").concat(m)]||d[m]||u[m]||l;return n?a.createElement(s,o(o({ref:t},p),{},{components:n})):a.createElement(s,o({ref:t},p))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=m;var i={};for(var y in t)hasOwnProperty.call(t,y)&&(i[y]=t[y]);i.originalType=e,i[d]="string"==typeof e?e:r,o[1]=i;for(var g=2;g{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>y,default:()=>s,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),o=["components"],i={hide_table_of_contents:!0},y="tsKeywordsScope",g={unversionedId:"api/tskeywordsscope",id:"version-1.0.26-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.26-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.26-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},p={},d=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],u={toc:d},m="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,o);return(0,l.yg)(m,(0,a.A)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/456f8f16.6839cbcf.js b/assets/js/456f8f16.b2ca9bf2.js similarity index 86% rename from assets/js/456f8f16.6839cbcf.js rename to assets/js/456f8f16.b2ca9bf2.js index be978f3b6e..23f598e2c9 100644 --- a/assets/js/456f8f16.6839cbcf.js +++ b/assets/js/456f8f16.b2ca9bf2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3627],{57522:(e,n,t)=>{t.d(n,{Zo:()=>s,kt:()=>m});var r=t(29901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var l=r.createContext({}),c=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},s=function(e){var n=c(e.components);return r.createElement(l.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=c(t),f=a,m=u["".concat(l,".").concat(f)]||u[f]||d[f]||o;return t?r.createElement(m,i(i({ref:n},s),{},{components:t})):r.createElement(m,i({ref:n},s))}));function m(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var c=2;c{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=t(73268),a=t(68039),o=(t(29901),t(57522)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",c={unversionedId:"api/precompileddefaults",id:"version-1.0.25-alpha/api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/1.0.25-alpha/api/precompileddefaults",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,a.Z)(e,i);return(0,o.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => unknown\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7289],{62757:(e,n,t)=>{t.d(n,{xA:()=>s,yg:()=>m});var r=t(67308);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var l=r.createContext({}),c=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},s=function(e){var n=c(e.components);return r.createElement(l.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=c(t),f=a,m=u["".concat(l,".").concat(f)]||u[f]||d[f]||o;return t?r.createElement(m,i(i({ref:n},s),{},{components:t})):r.createElement(m,i({ref:n},s))}));function m(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var c=2;c{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=t(37782),a=t(32345),o=(t(67308),t(62757)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",c={unversionedId:"api/precompileddefaults",id:"version-1.0.25-alpha/api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/1.0.25-alpha/api/precompileddefaults",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,a.A)(e,i);return(0,o.yg)(f,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => unknown\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/47b88856.2abf9e91.js b/assets/js/47b88856.9c36da2f.js similarity index 55% rename from assets/js/47b88856.2abf9e91.js rename to assets/js/47b88856.9c36da2f.js index ae14a1b84c..5ea3754796 100644 --- a/assets/js/47b88856.2abf9e91.js +++ b/assets/js/47b88856.9c36da2f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5557],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),a=n(68039),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.25-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.25-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5303],{62757:(e,t,n)=>{n.d(t,{xA:()=>u,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},y=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),y=a,m=s["".concat(c,".").concat(y)]||s[y]||f[y]||o;return n?r.createElement(m,l(l({ref:t},u),{},{components:n})):r.createElement(m,l({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(37782),a=n(32345),o=(n(67308),n(62757)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.25-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.25-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},y="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,l);return(0,o.yg)(y,(0,r.A)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"instanceof"},"instanceOf"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/instanceof"},"instanceOf"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.yg)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/489af003.428957c4.js b/assets/js/489af003.428957c4.js deleted file mode 100644 index 280204ae5b..0000000000 --- a/assets/js/489af003.428957c4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5e3],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.28-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.28-alpha/api/type",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/431f3670.d738ab13.js b/assets/js/489af003.613ecef0.js similarity index 55% rename from assets/js/431f3670.d738ab13.js rename to assets/js/489af003.613ecef0.js index 5862d695fa..49f061abd8 100644 --- a/assets/js/431f3670.d738ab13.js +++ b/assets/js/489af003.613ecef0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6954],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.19-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.19-alpha/api/type",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4716],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),y=c(r),f=o,d=y["".concat(l,".").concat(f)]||y[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[y]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>y});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.28-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.28-alpha/api/type",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],s={toc:y},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,p);return(0,a.yg)(f,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"type"},"type"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.yg)("hr",null),(0,a.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.yg)("h1",{id:"type-1"},"Type"),(0,a.yg)("h2",{id:"text-1"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/49fb3aca.9c79aa3a.js b/assets/js/49fb3aca.9c79aa3a.js new file mode 100644 index 0000000000..5b4430d19a --- /dev/null +++ b/assets/js/49fb3aca.9c79aa3a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8402],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},u=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(t),y=a,m=s["".concat(p,".").concat(y)]||s[y]||f[y]||o;return t?n.createElement(m,c(c({ref:r},u),{},{components:t})):n.createElement(m,c({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,c=new Array(o);c[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.23-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.23-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.23-alpha/api/ark",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},y="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,c);return(0,o.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"ark"},"ark"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/49fb3aca.f5641559.js b/assets/js/49fb3aca.f5641559.js deleted file mode 100644 index ac32fe500b..0000000000 --- a/assets/js/49fb3aca.f5641559.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2889],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),m=a,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||o;return r?n.createElement(y,c(c({ref:t},u),{},{components:r})):n.createElement(y,c({ref:t},u))}));function y(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,c=new Array(o);c[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.23-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.23-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.23-alpha/api/ark",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,a.Z)(e,c);return(0,o.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"ark"},"ark"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4a6ff42c.10313f70.js b/assets/js/4a6ff42c.10313f70.js new file mode 100644 index 0000000000..d794bed6b3 --- /dev/null +++ b/assets/js/4a6ff42c.10313f70.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8421],{62757:(e,r,t)=>{t.d(r,{xA:()=>y,yg:()=>g});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},y=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},c="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=u(t),s=a,g=c["".concat(i,".").concat(s)]||c[s]||f[s]||l;return t?n.createElement(g,o(o({ref:r},y),{},{components:t})):n.createElement(g,o({ref:r},y))}));function g(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>y,contentTitle:()=>i,default:()=>g,frontMatter:()=>p,metadata:()=>u,toc:()=>c});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.22-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.22-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:c},s="wrapper";function g(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"arrayof"},"arrayOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.22-alpha/api/arrayof"},"arrayOf"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"T[]" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4a6ff42c.f2026708.js b/assets/js/4a6ff42c.f2026708.js deleted file mode 100644 index 519b436075..0000000000 --- a/assets/js/4a6ff42c.f2026708.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6084],{57522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(i,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>f});var n=t(73268),a=t(68039),l=(t(29901),t(57522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.22-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.22-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.22-alpha/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4bc2b917.29b4e5bf.js b/assets/js/4bc2b917.29b4e5bf.js deleted file mode 100644 index 90be9eacf7..0000000000 --- a/assets/js/4bc2b917.29b4e5bf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[344],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(r),f=o,v=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return r?n.createElement(v,l(l({ref:t},u),{},{components:r})):n.createElement(v,l({ref:t},u))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>v,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.25-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.25-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function v(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/resolvednode"},"node"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4bc2b917.cdc43bdc.js b/assets/js/4bc2b917.cdc43bdc.js new file mode 100644 index 0000000000..646f60bd93 --- /dev/null +++ b/assets/js/4bc2b917.cdc43bdc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8373],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(t),f=o,y=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return t?n.createElement(y,l(l({ref:r},u),{},{components:t})):n.createElement(y,l({ref:r},u))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.25-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.25-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/resolvednode"},"node"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4c239821.341774b4.js b/assets/js/4c239821.341774b4.js deleted file mode 100644 index 8e4231b94f..0000000000 --- a/assets/js/4c239821.341774b4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6971],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.22-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.22-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.22-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4c239821.8a9d4a29.js b/assets/js/4c239821.8a9d4a29.js new file mode 100644 index 0000000000..d11c2bb9c0 --- /dev/null +++ b/assets/js/4c239821.8a9d4a29.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9757],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var y=a.createContext({}),g=function(e){var t=a.useContext(y),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=g(e.components);return a.createElement(y.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,y=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),d=g(n),m=r,s=d["".concat(y,".").concat(m)]||d[m]||u[m]||l;return n?a.createElement(s,o(o({ref:t},p),{},{components:n})):a.createElement(s,o({ref:t},p))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=m;var i={};for(var y in t)hasOwnProperty.call(t,y)&&(i[y]=t[y]);i.originalType=e,i[d]="string"==typeof e?e:r,o[1]=i;for(var g=2;g{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>y,default:()=>s,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),o=["components"],i={hide_table_of_contents:!0},y="tsKeywordsScope",g={unversionedId:"api/tskeywordsscope",id:"version-1.0.22-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.22-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.22-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},p={},d=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],u={toc:d},m="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,o);return(0,l.yg)(m,(0,a.A)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4c51d941.89d07d2e.js b/assets/js/4c51d941.89d07d2e.js deleted file mode 100644 index 093a7484c0..0000000000 --- a/assets/js/4c51d941.89d07d2e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[397],{57522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var o=a.createContext({}),d=function(t){var e=a.useContext(o),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},m=function(t){var e=d(t.components);return a.createElement(o.Provider,{value:e},t.children)},u="mdxType",s={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},c=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,m=p(t,["components","mdxType","originalType","parentName"]),u=d(n),c=r,k=u["".concat(o,".").concat(c)]||u[c]||s[c]||l;return n?a.createElement(k,i(i({ref:e},m),{},{components:n})):a.createElement(k,i({ref:e},m))}));function k(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=c;var p={};for(var o in e)hasOwnProperty.call(e,o)&&(p[o]=e[o]);p.originalType=t,p[u]="string"==typeof t?t:r,i[1]=p;for(var d=2;d{n.r(e),n.d(e,{assets:()=>m,contentTitle:()=>o,default:()=>k,frontMatter:()=>p,metadata:()=>d,toc:()=>u});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.24-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.24-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.24-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},m={},u=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],s={toc:u},c="wrapper";function k(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(c,(0,a.Z)({},s,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"validationscope"},"validationScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4c51d941.9f956032.js b/assets/js/4c51d941.9f956032.js new file mode 100644 index 0000000000..3a36b00105 --- /dev/null +++ b/assets/js/4c51d941.9f956032.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2134],{62757:(e,t,n)=>{n.d(t,{xA:()=>d,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=a.createContext({}),g=function(e){var t=a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=g(e.components);return a.createElement(o.Provider,{value:t},e.children)},y="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,d=p(e,["components","mdxType","originalType","parentName"]),y=g(n),u=r,s=y["".concat(o,".").concat(u)]||y[u]||m[u]||l;return n?a.createElement(s,i(i({ref:t},d),{},{components:n})):a.createElement(s,i({ref:t},d))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=u;var p={};for(var o in t)hasOwnProperty.call(t,o)&&(p[o]=t[o]);p.originalType=e,p[y]="string"==typeof e?e:r,i[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>s,frontMatter:()=>p,metadata:()=>g,toc:()=>y});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",g={unversionedId:"api/validationscope",id:"version-1.0.24-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.24-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.24-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},d={},y=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],m={toc:y},u="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,i);return(0,l.yg)(u,(0,a.A)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"validationscope"},"validationScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4d0232ca.77bb14fe.js b/assets/js/4d0232ca.17766c09.js similarity index 82% rename from assets/js/4d0232ca.77bb14fe.js rename to assets/js/4d0232ca.17766c09.js index 2f90bcd374..8f439af040 100644 --- a/assets/js/4d0232ca.77bb14fe.js +++ b/assets/js/4d0232ca.17766c09.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1011],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.25-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/1.0.25-alpha/api/space",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,p);return(0,o.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"space"},"Space"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5114],{62757:(e,t,r)=>{r.d(t,{xA:()=>s,yg:()=>m});var n=r(67308);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),a=r(32345),o=(r(67308),r(62757)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.25-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/1.0.25-alpha/api/space",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.A)(e,p);return(0,o.yg)(y,(0,n.A)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"space"},"Space"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4d157327.2dec23a2.js b/assets/js/4d157327.2dec23a2.js deleted file mode 100644 index f0db52bffd..0000000000 --- a/assets/js/4d157327.2dec23a2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9655],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>k});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),c=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(i.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,k=f["".concat(i,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(k,l(l({ref:t},u),{},{components:r})):n.createElement(k,l({ref:t},u))}));function k(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=y;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[f]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>f});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.28-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.28-alpha/api/keyof",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function k(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"keyof"},"keyOf"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.28-alpha/api/keyof"},"keyOf"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"keyOf(T) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.kt)("br",null))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4d157327.d89f385a.js b/assets/js/4d157327.d89f385a.js new file mode 100644 index 0000000000..3914b70676 --- /dev/null +++ b/assets/js/4d157327.d89f385a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3922],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),s=o,g=y["".concat(i,".").concat(s)]||y[s]||f[s]||a;return t?n.createElement(g,l(l({ref:r},u),{},{components:t})):n.createElement(g,l({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=s;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>g,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.28-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.28-alpha/api/keyof",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:y},s="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"keyof"},"keyOf"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.28-alpha/api/keyof"},"keyOf"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"keyOf(T) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4edc808e.5b822951.js b/assets/js/4edc808e.5b822951.js new file mode 100644 index 0000000000..8a06241c65 --- /dev/null +++ b/assets/js/4edc808e.5b822951.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[308],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var c=2;c{t.d(n,{$:()=>y});var r=t(29093),a=t(57089),o=t(1434),i=t(75768),s=t(67308),p=t(8426);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(37782),a=t(32345),o=(t(67308),t(62757)),i=t(72375),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},c="Getting Started",l={unversionedId:"intro",id:"intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/docs/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/next/",draft:!1,tags:[],version:"current",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/next/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.A)(e,s);return(0,o.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"getting-started"},"Getting Started"),(0,o.yg)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.yg)("sub",null,(0,o.yg)("sub",null,"\ud83d\udce6",(0,o.yg)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.yg)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.yg)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.yg)("code",null,"npm install arktype"),(0,o.yg)("sub",null,"(or whatever package manager you prefer)"),(0,o.yg)("br",null),(0,o.yg)("p",null,"Our types are tested in ",(0,o.yg)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript version ",(0,o.yg)("inlineCode",{parentName:"p"},"4.8")," or greater."),(0,o.yg)("p",null,(0,o.yg)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.yg)("h2",{id:"your-first-type"},"Your first type"),(0,o.yg)(i.$,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4edc808e.b482f691.js b/assets/js/4edc808e.b482f691.js deleted file mode 100644 index 6eb33cccaa..0000000000 --- a/assets/js/4edc808e.b482f691.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4173],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var c=2;c{t.d(n,{g:()=>y});var r=t(19982),a=t(60024),o=t(53800),i=t(49361),s=t(29901),p=t(43346);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(73268),a=t(68039),o=(t(29901),t(57522)),i=t(18724),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},c="Getting Started",l={unversionedId:"intro",id:"intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/docs/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/next/",draft:!1,tags:[],version:"current",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/next/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript version ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8")," or greater."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4edc9ce5.159c84eb.js b/assets/js/4edc9ce5.159c84eb.js deleted file mode 100644 index ee46e08c75..0000000000 --- a/assets/js/4edc9ce5.159c84eb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5820],{57522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d=a.createContext({}),m=function(t){var e=a.useContext(d),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(d.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,o=p(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(d,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var p={};for(var d in e)hasOwnProperty.call(e,d)&&(p[d]=e[d]);p.originalType=t,p[k]="string"==typeof t?t:r,i[1]=p;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>g,frontMatter:()=>p,metadata:()=>m,toc:()=>k});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/docs/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/next/api/keywords",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/next/scopes"},next:{title:"Operators",permalink:"/docs/next/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4edc9ce5.2a41d989.js b/assets/js/4edc9ce5.2a41d989.js new file mode 100644 index 0000000000..49b51db90a --- /dev/null +++ b/assets/js/4edc9ce5.2a41d989.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5835],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>N});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):g(g({},t),e)),n},y=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},m="mdxType",o={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,p=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),m=d(n),u=r,N=m["".concat(p,".").concat(u)]||m[u]||o[u]||l;return n?a.createElement(N,g(g({ref:t},y),{},{components:n})):a.createElement(N,g({ref:t},y))}));function N(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,g=new Array(l);g[0]=u;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[m]="string"==typeof e?e:r,g[1]=i;for(var d=2;d{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>p,default:()=>N,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),g=["components"],i={hide_table_of_contents:!0},p="Keywords",d={unversionedId:"api/keywords",id:"api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/docs/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/next/api/keywords",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/next/scopes"},next:{title:"Operators",permalink:"/docs/next/api/operators"}},y={},m=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],o={toc:m},u="wrapper";function N(e){var t=e.components,n=(0,r.A)(e,g);return(0,l.yg)(u,(0,a.A)({},o,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"keywords"},"Keywords"),(0,l.yg)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))),(0,l.yg)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))),(0,l.yg)("h2",{id:"validationscope"},"validationScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2378f488.ccde6ef4.js b/assets/js/4f719b32.e646bc5e.js similarity index 59% rename from assets/js/2378f488.ccde6ef4.js rename to assets/js/4f719b32.e646bc5e.js index 9f7396e7b5..dbc6f96108 100644 --- a/assets/js/2378f488.ccde6ef4.js +++ b/assets/js/4f719b32.e646bc5e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5834],{57522:(e,t,r)=>{r.d(t,{Zo:()=>l,kt:()=>y});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),d=o,y=u["".concat(s,".").concat(d)]||u[d]||f[d]||a;return r?n.createElement(y,i(i({ref:t},l),{},{components:r})):n.createElement(y,i({ref:t},l))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=d;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.28-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.28-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.28-alpha/api",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.28-alpha/api/operators"}},l={},u=[],f={toc:u},d="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(d,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9927],{62757:(e,t,r)=>{r.d(t,{xA:()=>l,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),f=o,d=u["".concat(s,".").concat(f)]||u[f]||y[f]||a;return r?n.createElement(d,i(i({ref:t},l),{},{components:r})):n.createElement(d,i({ref:t},l))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=f;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.22-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.22-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.22-alpha/api",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.22-alpha/api/operators"}},l={},u=[],y={toc:u},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"api"},"API"),(0,a.yg)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.yg)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.yg)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4f91d1fa.dd375a22.js b/assets/js/4f91d1fa.dd375a22.js new file mode 100644 index 0000000000..e802610172 --- /dev/null +++ b/assets/js/4f91d1fa.dd375a22.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[149],{83120:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.27-alpha","label":"1.0.27-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.27-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.27-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.27-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.27-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.27-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.27-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/4fc4d3de.83188f8e.js b/assets/js/4fc4d3de.83188f8e.js new file mode 100644 index 0000000000..962756e0ab --- /dev/null +++ b/assets/js/4fc4d3de.83188f8e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6462],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>N});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):g(g({},t),e)),n},y=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},m="mdxType",o={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,p=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),m=d(n),u=r,N=m["".concat(p,".").concat(u)]||m[u]||o[u]||l;return n?a.createElement(N,g(g({ref:t},y),{},{components:n})):a.createElement(N,g({ref:t},y))}));function N(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,g=new Array(l);g[0]=u;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[m]="string"==typeof e?e:r,g[1]=i;for(var d=2;d{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>p,default:()=>N,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),g=["components"],i={hide_table_of_contents:!0},p="Keywords",d={unversionedId:"api/keywords",id:"version-1.0.19-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.19-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.19-alpha/api/keywords",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.19-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.19-alpha/api/operators"}},y={},m=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],o={toc:m},u="wrapper";function N(e){var t=e.components,n=(0,r.A)(e,g);return(0,l.yg)(u,(0,a.A)({},o,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"keywords"},"Keywords"),(0,l.yg)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))),(0,l.yg)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))),(0,l.yg)("h2",{id:"validationscope"},"validationScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4fc4d3de.93a8db0c.js b/assets/js/4fc4d3de.93a8db0c.js deleted file mode 100644 index 67aab59a80..0000000000 --- a/assets/js/4fc4d3de.93a8db0c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2227],{57522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d=a.createContext({}),m=function(t){var e=a.useContext(d),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(d.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,o=p(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(d,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var p={};for(var d in e)hasOwnProperty.call(e,d)&&(p[d]=e[d]);p.originalType=t,p[k]="string"==typeof t?t:r,i[1]=p;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>g,frontMatter:()=>p,metadata:()=>m,toc:()=>k});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.19-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.19-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.19-alpha/api/keywords",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.19-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.19-alpha/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/506c0445.39889076.js b/assets/js/506c0445.39889076.js deleted file mode 100644 index 974449e1b5..0000000000 --- a/assets/js/506c0445.39889076.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4557],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.23-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.23-alpha/api/morph",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/506c0445.7a6dc48e.js b/assets/js/506c0445.7a6dc48e.js new file mode 100644 index 0000000000..4e368274fb --- /dev/null +++ b/assets/js/506c0445.7a6dc48e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9452],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),y=u(t),m=o,f=y["".concat(i,".").concat(m)]||y[m]||s[m]||a;return t?n.createElement(f,p(p({ref:r},c),{},{components:t})):n.createElement(f,p({ref:r},c))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=m;var l={};for(var i in r)hasOwnProperty.call(r,i)&&(l[i]=r[i]);l.originalType=e,l[y]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>f,frontMatter:()=>l,metadata:()=>u,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.23-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.23-alpha/api/morph",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},m="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(m,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"morph"},"morph"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/morph"},"|",">"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/50afdaae.51b96a91.js b/assets/js/50afdaae.3e050890.js similarity index 98% rename from assets/js/50afdaae.51b96a91.js rename to assets/js/50afdaae.3e050890.js index a6570b11f3..eef4291fc0 100644 --- a/assets/js/50afdaae.51b96a91.js +++ b/assets/js/50afdaae.3e050890.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1638],{59140:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.25-alpha","label":"1.0.25-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.25-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.25-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.25-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.25-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.25-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.25-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7782],{26982:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.25-alpha","label":"1.0.25-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.25-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.25-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.25-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.25-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.25-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.25-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/5179419d.0ab629c7.js b/assets/js/5179419d.0ab629c7.js deleted file mode 100644 index f06befd499..0000000000 --- a/assets/js/5179419d.0ab629c7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9184],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},m="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),m=u(r),f=o,d=m["".concat(i,".").concat(f)]||m[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[m]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>m});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"api/morph",title:"morph",description:"operator",source:"@site/docs/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/next/api/morph",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},m=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:m},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/next/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5179419d.ce4cbe1e.js b/assets/js/5179419d.ce4cbe1e.js new file mode 100644 index 0000000000..3ad4624b87 --- /dev/null +++ b/assets/js/5179419d.ce4cbe1e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5975],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),y=u(t),s=o,f=y["".concat(i,".").concat(s)]||y[s]||m[s]||a;return t?n.createElement(f,p(p({ref:r},c),{},{components:t})):n.createElement(f,p({ref:r},c))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=s;var l={};for(var i in r)hasOwnProperty.call(r,i)&&(l[i]=r[i]);l.originalType=e,l[y]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>f,frontMatter:()=>l,metadata:()=>u,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"api/morph",title:"morph",description:"operator",source:"@site/docs/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/next/api/morph",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:y},s="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(s,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"morph"},"morph"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/next/api/morph"},"|",">"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/51a477b6.e665e677.js b/assets/js/51a477b6.3266218f.js similarity index 83% rename from assets/js/51a477b6.e665e677.js rename to assets/js/51a477b6.3266218f.js index 80520de01a..f56eccae5d 100644 --- a/assets/js/51a477b6.e665e677.js +++ b/assets/js/51a477b6.3266218f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3050],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>y});var r=t(29901);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(73268),i=t(68039),o=(t(29901),t(57522)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.26-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.26-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/1.0.26-alpha/api/inferdefinition",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.Z)(e,a);return(0,o.kt)(u,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5964],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>y});var r=t(67308);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(37782),i=t(32345),o=(t(67308),t(62757)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.26-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.26-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/1.0.26-alpha/api/inferdefinition",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.A)(e,a);return(0,o.yg)(u,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/51b877ca.17cafde9.js b/assets/js/51b877ca.17cafde9.js deleted file mode 100644 index 0a58a79019..0000000000 --- a/assets/js/51b877ca.17cafde9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2235],{57522:(t,e,a)=>{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var o=n.createContext({}),d=function(t){var e=n.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):p(p({},e),t)),a},u=function(t){var e=d(t.components);return n.createElement(o.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(a),c=r,s=m["".concat(o,".").concat(c)]||m[c]||k[c]||l;return a?n.createElement(s,p(p({ref:e},u),{},{components:a})):n.createElement(s,p({ref:e},u))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,p=new Array(l);p[0]=c;var i={};for(var o in e)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i[m]="string"==typeof t?t:r,p[1]=i;for(var d=2;d{a.r(e),a.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var n=a(73268),r=a(68039),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.29-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.29-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/api/operators",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/api/keywords"},next:{title:"API",permalink:"/docs/api"}},u={},m=[{value:"Operating Table",id:"operating-table",level:2}],k={toc:m},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,p);return(0,l.kt)(c,(0,n.Z)({},k,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"operators"},"Operators"),(0,l.kt)("h2",{id:"operating-table"},"Operating Table"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"operator"),(0,l.kt)("th",{parentName:"tr",align:null},"string"),(0,l.kt)("th",{parentName:"tr",align:null},"tuple"),(0,l.kt)("th",{parentName:"tr",align:null},"helper"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/arrayof"},"arrayOf")),(0,l.kt)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.kt)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.kt)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/instanceof"},"instanceOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/intersection"},"&")),(0,l.kt)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.kt)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/keyof"},"keyOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.kt)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/morph"},"|",">")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.kt)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/narrow"},"=>")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/union"},"|")),(0,l.kt)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.kt)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/valueof"},"===")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/parseconfigtuple"},":")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{a.d(t,{xA:()=>y,yg:()=>c});var n=a(67308);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),g=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},y=function(e){var t=g(e.components);return n.createElement(o.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),d=g(a),m=r,c=d["".concat(o,".").concat(m)]||d[m]||u[m]||l;return a?n.createElement(c,p(p({ref:t},y),{},{components:a})):n.createElement(c,p({ref:t},y))}));function c(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[d]="string"==typeof e?e:r,p[1]=i;for(var g=2;g{a.r(t),a.d(t,{assets:()=>y,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var n=a(37782),r=a(32345),l=(a(67308),a(62757)),p=["components"],i={hide_table_of_contents:!0},o="Operators",g={unversionedId:"api/operators",id:"version-1.0.29-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.29-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/api/operators",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/api/keywords"},next:{title:"API",permalink:"/docs/api"}},y={},d=[{value:"Operating Table",id:"operating-table",level:2}],u={toc:d},m="wrapper";function c(e){var t=e.components,a=(0,r.A)(e,p);return(0,l.yg)(m,(0,n.A)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"operators"},"Operators"),(0,l.yg)("h2",{id:"operating-table"},"Operating Table"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"operator"),(0,l.yg)("th",{parentName:"tr",align:null},"string"),(0,l.yg)("th",{parentName:"tr",align:null},"tuple"),(0,l.yg)("th",{parentName:"tr",align:null},"helper"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/arrayof"},"arrayOf")),(0,l.yg)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.yg)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.yg)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/instanceof"},"instanceOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/intersection"},"&")),(0,l.yg)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.yg)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/keyof"},"keyOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.yg)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/morph"},"|",">")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.yg)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/narrow"},"=>")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/union"},"|")),(0,l.yg)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.yg)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/valueof"},"===")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/parseconfigtuple"},":")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/api/validatebound"},"bound")),(0,l.yg)("td",{parentName:"tr",align:null},'"N{n.d(t,{xA:()=>y,yg:()=>N});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):g(g({},t),e)),n},y=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},m="mdxType",o={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,p=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),m=d(n),u=r,N=m["".concat(p,".").concat(u)]||m[u]||o[u]||l;return n?a.createElement(N,g(g({ref:t},y),{},{components:n})):a.createElement(N,g({ref:t},y))}));function N(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,g=new Array(l);g[0]=u;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[m]="string"==typeof e?e:r,g[1]=i;for(var d=2;d{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>p,default:()=>N,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),g=["components"],i={hide_table_of_contents:!0},p="Keywords",d={unversionedId:"api/keywords",id:"version-1.0.28-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.28-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.28-alpha/api/keywords",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.28-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.28-alpha/api/operators"}},y={},m=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],o={toc:m},u="wrapper";function N(e){var t=e.components,n=(0,r.A)(e,g);return(0,l.yg)(u,(0,a.A)({},o,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"keywords"},"Keywords"),(0,l.yg)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))),(0,l.yg)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))),(0,l.yg)("h2",{id:"validationscope"},"validationScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/52828006.f23d9fa7.js b/assets/js/52828006.f23d9fa7.js deleted file mode 100644 index 8c4988530d..0000000000 --- a/assets/js/52828006.f23d9fa7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2370],{57522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d=a.createContext({}),m=function(t){var e=a.useContext(d),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(d.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,o=p(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(d,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var p={};for(var d in e)hasOwnProperty.call(e,d)&&(p[d]=e[d]);p.originalType=t,p[k]="string"==typeof t?t:r,i[1]=p;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>g,frontMatter:()=>p,metadata:()=>m,toc:()=>k});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.28-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.28-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.28-alpha/api/keywords",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.28-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.28-alpha/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/52f9fd70.4949f25a.js b/assets/js/52f9fd70.4949f25a.js new file mode 100644 index 0000000000..ff6a18c319 --- /dev/null +++ b/assets/js/52f9fd70.4949f25a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[842],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},s=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},d=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(t),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return t?n.createElement(f,c(c({ref:r},s),{},{components:t})):n.createElement(f,c({ref:r},s))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,c=new Array(a);c[0]=d;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.24-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.24-alpha/api/problem",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,c);return(0,a.yg)(d,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"problem"},"Problem"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/52f9fd70.6570a828.js b/assets/js/52f9fd70.6570a828.js deleted file mode 100644 index 6ce1792d15..0000000000 --- a/assets/js/52f9fd70.6570a828.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3431],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.24-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.24-alpha/api/problem",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/54746c5d.7ef61bfd.js b/assets/js/54746c5d.7ef61bfd.js deleted file mode 100644 index a8313f5ba1..0000000000 --- a/assets/js/54746c5d.7ef61bfd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7609],{57522:(t,e,a)=>{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var o=n.createContext({}),d=function(t){var e=n.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):p(p({},e),t)),a},u=function(t){var e=d(t.components);return n.createElement(o.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(a),c=r,s=m["".concat(o,".").concat(c)]||m[c]||k[c]||l;return a?n.createElement(s,p(p({ref:e},u),{},{components:a})):n.createElement(s,p({ref:e},u))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,p=new Array(l);p[0]=c;var i={};for(var o in e)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i[m]="string"==typeof t?t:r,p[1]=i;for(var d=2;d{a.r(e),a.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var n=a(73268),r=a(68039),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.22-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.22-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.22-alpha/api/operators",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.22-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.22-alpha/api"}},u={},m=[{value:"Operating Table",id:"operating-table",level:2}],k={toc:m},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,p);return(0,l.kt)(c,(0,n.Z)({},k,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"operators"},"Operators"),(0,l.kt)("h2",{id:"operating-table"},"Operating Table"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"operator"),(0,l.kt)("th",{parentName:"tr",align:null},"string"),(0,l.kt)("th",{parentName:"tr",align:null},"tuple"),(0,l.kt)("th",{parentName:"tr",align:null},"helper"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/arrayof"},"arrayOf")),(0,l.kt)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.kt)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.kt)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/instanceof"},"instanceOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/intersection"},"&")),(0,l.kt)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.kt)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/keyof"},"keyOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.kt)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/morph"},"|",">")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.kt)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/narrow"},"=>")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/union"},"|")),(0,l.kt)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.kt)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/valueof"},"===")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/parseconfigtuple"},":")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{a.d(t,{xA:()=>y,yg:()=>c});var n=a(67308);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),g=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},y=function(e){var t=g(e.components);return n.createElement(o.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),d=g(a),m=r,c=d["".concat(o,".").concat(m)]||d[m]||u[m]||l;return a?n.createElement(c,p(p({ref:t},y),{},{components:a})):n.createElement(c,p({ref:t},y))}));function c(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[d]="string"==typeof e?e:r,p[1]=i;for(var g=2;g{a.r(t),a.d(t,{assets:()=>y,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var n=a(37782),r=a(32345),l=(a(67308),a(62757)),p=["components"],i={hide_table_of_contents:!0},o="Operators",g={unversionedId:"api/operators",id:"version-1.0.22-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.22-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.22-alpha/api/operators",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.22-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.22-alpha/api"}},y={},d=[{value:"Operating Table",id:"operating-table",level:2}],u={toc:d},m="wrapper";function c(e){var t=e.components,a=(0,r.A)(e,p);return(0,l.yg)(m,(0,n.A)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"operators"},"Operators"),(0,l.yg)("h2",{id:"operating-table"},"Operating Table"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"operator"),(0,l.yg)("th",{parentName:"tr",align:null},"string"),(0,l.yg)("th",{parentName:"tr",align:null},"tuple"),(0,l.yg)("th",{parentName:"tr",align:null},"helper"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/arrayof"},"arrayOf")),(0,l.yg)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.yg)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.yg)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/instanceof"},"instanceOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/intersection"},"&")),(0,l.yg)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.yg)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/keyof"},"keyOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.yg)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/morph"},"|",">")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.yg)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/narrow"},"=>")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/union"},"|")),(0,l.yg)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.yg)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/valueof"},"===")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/parseconfigtuple"},":")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.22-alpha/api/validatebound"},"bound")),(0,l.yg)("td",{parentName:"tr",align:null},'"N{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(73268),o=t(68039),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.28-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.28-alpha/api/scope",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8418],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),y=o,f=u["".concat(p,".").concat(y)]||u[y]||d[y]||s;return t?r.createElement(f,a(a({ref:n},l),{},{components:t})):r.createElement(f,a({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=y;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(37782),o=t(32345),s=(t(67308),t(62757)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.26-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.26-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.26-alpha/api/scope",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},y="wrapper";function f(e){var n=e.components,t=(0,o.A)(e,a);return(0,s.yg)(y,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.yg)("h1",{id:"scope"},"scope"),(0,s.yg)("h2",{id:"text"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.yg)("hr",null),(0,s.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.yg)("h1",{id:"scope-1"},"Scope"),(0,s.yg)("h2",{id:"text-1"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/55fbe152.f94d99c6.js b/assets/js/55fbe152.d0312ea5.js similarity index 67% rename from assets/js/55fbe152.f94d99c6.js rename to assets/js/55fbe152.d0312ea5.js index 59e1d3b0e4..31cbdb41ae 100644 --- a/assets/js/55fbe152.f94d99c6.js +++ b/assets/js/55fbe152.d0312ea5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9197],{57522:(e,t,r)=>{r.d(t,{Zo:()=>l,kt:()=>y});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),d=o,y=u["".concat(s,".").concat(d)]||u[d]||f[d]||a;return r?n.createElement(y,i(i({ref:t},l),{},{components:r})):n.createElement(y,i({ref:t},l))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=d;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.20-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.20-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.20-alpha/api",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.20-alpha/api/operators"}},l={},u=[],f={toc:u},d="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(d,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6398],{62757:(e,t,r)=>{r.d(t,{xA:()=>l,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),f=o,d=u["".concat(s,".").concat(f)]||u[f]||y[f]||a;return r?n.createElement(d,i(i({ref:t},l),{},{components:r})):n.createElement(d,i({ref:t},l))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=f;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.20-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.20-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.20-alpha/api",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.20-alpha/api/operators"}},l={},u=[],y={toc:u},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"api"},"API"),(0,a.yg)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.yg)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.yg)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/56ebe7ce.e70ebfd7.js b/assets/js/56ebe7ce.e70ebfd7.js new file mode 100644 index 0000000000..a7ba404b14 --- /dev/null +++ b/assets/js/56ebe7ce.e70ebfd7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8943],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),y=u(t),m=o,f=y["".concat(i,".").concat(m)]||y[m]||s[m]||a;return t?n.createElement(f,p(p({ref:r},c),{},{components:t})):n.createElement(f,p({ref:r},c))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=m;var l={};for(var i in r)hasOwnProperty.call(r,i)&&(l[i]=r[i]);l.originalType=e,l[y]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>f,frontMatter:()=>l,metadata:()=>u,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.26-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.26-alpha/api/morph",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},m="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(m,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"morph"},"morph"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/morph"},"|",">"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/56ebe7ce.fbeadcf0.js b/assets/js/56ebe7ce.fbeadcf0.js deleted file mode 100644 index bfdb6f1239..0000000000 --- a/assets/js/56ebe7ce.fbeadcf0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1052],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.26-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.26-alpha/api/morph",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/574c3876.c5ad8d39.js b/assets/js/574c3876.c5ad8d39.js new file mode 100644 index 0000000000..762d9f0c37 --- /dev/null +++ b/assets/js/574c3876.c5ad8d39.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2154],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var y=a.createContext({}),g=function(e){var t=a.useContext(y),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=g(e.components);return a.createElement(y.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,y=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),d=g(n),m=r,s=d["".concat(y,".").concat(m)]||d[m]||u[m]||l;return n?a.createElement(s,o(o({ref:t},p),{},{components:n})):a.createElement(s,o({ref:t},p))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=m;var i={};for(var y in t)hasOwnProperty.call(t,y)&&(i[y]=t[y]);i.originalType=e,i[d]="string"==typeof e?e:r,o[1]=i;for(var g=2;g{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>y,default:()=>s,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),o=["components"],i={hide_table_of_contents:!0},y="tsKeywordsScope",g={unversionedId:"api/tskeywordsscope",id:"version-1.0.24-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.24-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.24-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},p={},d=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],u={toc:d},m="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,o);return(0,l.yg)(m,(0,a.A)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/574c3876.eed746e3.js b/assets/js/574c3876.eed746e3.js deleted file mode 100644 index 9e5c5193d8..0000000000 --- a/assets/js/574c3876.eed746e3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5324],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.24-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.24-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.24-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5826.46f0bd3a.js b/assets/js/5826.46f0bd3a.js deleted file mode 100644 index 7e2d4d5640..0000000000 --- a/assets/js/5826.46f0bd3a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5826],{15826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G});var o=n(73268),r=n(68039),a=n(29901),c=n(53261),s=n(14517),l=n(83736),i=n(66228);function u(){var e=(0,i.L)().prism,t=(0,l.I)().colorMode,n=e.theme,o=e.darkTheme||n;return"dark"===t?o:n}var d=n(69057),p=n(80117),m=n(2613),f=n.n(m),g=(0,p.Z)(/title=(["'])(.*?)\1/,{quote:1,title:2}),v=(0,p.Z)(/\{([\d,-]+)\}/,{range:1}),y={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}};function h(e,t){var n=e.map((function(e){var n=y[e],o=n.start,r=n.end;return"(?:"+o+"\\s*("+t.flatMap((function(e){var t,n;return[e.line,null==(t=e.block)?void 0:t.start,null==(n=e.block)?void 0:n.end].filter(Boolean)})).join("|")+")\\s*"+r+")"})).join("|");return new RegExp("^\\s*(?:"+n+")\\s*$")}function b(e,t){var n=e.replace(/\n$/,""),o=t.language,r=t.magicComments,a=t.metastring;if(a&&v.test(a)){var c=a.match(v).groups.range;if(0===r.length)throw new Error("A highlight range has been given in code block's metastring (``` "+a+"), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.");var s=r[0].className,l=f()(c).filter((function(e){return e>0})).map((function(e){return[e-1,[s]]}));return{lineClassNames:Object.fromEntries(l),code:n}}if(void 0===o)return{lineClassNames:{},code:n};for(var i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return h(["js","jsBlock"],t);case"jsx":case"tsx":return h(["js","jsBlock","jsx"],t);case"html":return h(["js","jsBlock","html"],t);case"python":case"py":case"bash":return h(["bash"],t);case"markdown":case"md":return h(["html","jsx","bash"],t);default:return h(Object.keys(y),t)}}(o,r),u=n.split("\n"),d=Object.fromEntries(r.map((function(e){return[e.className,{start:0,range:""}]}))),p=Object.fromEntries(r.filter((function(e){return e.line})).map((function(e){var t=e.className;return[e.line,t]}))),m=Object.fromEntries(r.filter((function(e){return e.block})).map((function(e){var t=e.className;return[e.block.start,t]}))),g=Object.fromEntries(r.filter((function(e){return e.block})).map((function(e){var t=e.className;return[e.block.end,t]}))),b=0;b0&&e[n-1]===t?e:e.concat(t)};function A(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(n[o]=e[o]);return n}var P=function(e){function t(){for(var t=this,n=[],o=arguments.length;o--;)n[o]=arguments[o];e.apply(this,n),I(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?function(e,t){var n=e.plain,o=Object.create(null),r=e.styles.reduce((function(e,n){var o=n.languages,r=n.style;return o&&!o.includes(t)||n.types.forEach((function(t){var n=_({},e[t],r);e[t]=n})),e}),o);return r.root=n,r.plain=_({},n,{backgroundColor:null}),r}(e.theme,e.language):void 0;return t.themeDict=n})),I(this,"getLineProps",(function(e){var n=e.key,o=e.className,r=e.style,a=_({},A(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),c=t.getThemeDict(t.props);return void 0!==c&&(a.style=c.plain),void 0!==r&&(a.style=void 0!==a.style?_({},a.style,r):r),void 0!==n&&(a.key=n),o&&(a.className+=" "+o),a})),I(this,"getStyleForToken",(function(e){var n=e.types,o=e.empty,r=n.length,a=t.getThemeDict(t.props);if(void 0!==a){if(1===r&&"plain"===n[0])return o?{display:"inline-block"}:void 0;if(1===r&&!o)return a[n[0]];var c=o?{display:"inline-block"}:{},s=n.map((function(e){return a[e]}));return Object.assign.apply(Object,[c].concat(s))}})),I(this,"getTokenProps",(function(e){var n=e.key,o=e.className,r=e.style,a=e.token,c=_({},A(e,["key","className","style","token"]),{className:"token "+a.types.join(" "),children:a.content,style:t.getStyleForToken(a),key:void 0});return void 0!==r&&(c.style=void 0!==c.style?_({},c.style,r):r),void 0!==n&&(c.key=n),o&&(c.className+=" "+o),c})),I(this,"tokenize",(function(e,t,n,o){var r={code:t,grammar:n,language:o,tokens:[]};e.hooks.run("before-tokenize",r);var a=r.tokens=e.tokenize(r.code,r.grammar,r.language);return e.hooks.run("after-tokenize",r),a}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,o=e.code,r=e.children,a=this.getThemeDict(this.props),c=t.languages[n];return r({tokens:function(e){for(var t=[[]],n=[e],o=[0],r=[e.length],a=0,c=0,s=[],l=[s];c>-1;){for(;(a=o[c]++)0?u:["plain"],i=d):(u=S(u,d.type),d.alias&&(u=S(u,d.alias)),i=d.content),"string"==typeof i){var p=i.split(Z),m=p.length;s.push({types:u,content:p[0]});for(var f=1;f0&&c.getRangeAt(0);o.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;var l=!1;try{l=document.execCommand("copy")}catch(i){}r.remove(),s&&(c.removeAllRanges(),c.addRange(s)),a&&a.focus()}(t),c(!0),l.current=window.setTimeout((function(){c(!1)}),1e3)}),[t]);return(0,a.useEffect)((function(){return function(){return window.clearTimeout(l.current)}}),[]),a.createElement("button",{type:"button","aria-label":r?(0,H.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,H.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,H.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,s.Z)("clean-btn",n,R.copyButton,r&&R.copyButtonCopied),onClick:i},a.createElement("span",{className:R.copyButtonIcons,"aria-hidden":"true"},a.createElement("svg",{className:R.copyButtonIcon,viewBox:"0 0 24 24"},a.createElement("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})),a.createElement("svg",{className:R.copyButtonSuccessIcon,viewBox:"0 0 24 24"},a.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))}const V={wordWrapButtonIcon:"wordWrapButtonIcon_TyEO",wordWrapButtonEnabled:"wordWrapButtonEnabled_xdhj"};function F(e){var t=e.className,n=e.onClick,o=e.isEnabled,r=(0,H.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return a.createElement("button",{type:"button",onClick:n,className:(0,s.Z)("clean-btn",t,o&&V.wordWrapButtonEnabled),"aria-label":r,title:r},a.createElement("svg",{className:V.wordWrapButtonIcon,viewBox:"0 0 24 24","aria-hidden":"true"},a.createElement("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})))}function $(e){var t,n,r,c,l,d,p,m,f,v,y,h=e.children,k=e.className,E=void 0===k?"":k,C=e.metastring,w=e.title,L=e.showLineNumbers,T=e.language,I=(0,i.L)().prism,_=I.defaultLanguage,Z=I.magicComments,O=null!=(t=null!=T?T:null==(n=E.split(" ").find((function(e){return e.startsWith("language-")})))?void 0:n.replace(/language-/,""))?t:_,S=u(),A=(r=(0,a.useState)(!1),c=r[0],l=r[1],d=(0,a.useState)(!1),p=d[0],m=d[1],f=(0,a.useRef)(null),v=(0,a.useCallback)((function(){var e=f.current.querySelector("code");c?e.removeAttribute("style"):(e.style.whiteSpace="pre-wrap",e.style.overflowWrap="anywhere"),l((function(e){return!e}))}),[f,c]),y=(0,a.useCallback)((function(){var e=f.current,t=e.scrollWidth>e.clientWidth||f.current.querySelector("code").hasAttribute("style");m(t)}),[f]),j(f,y),(0,a.useEffect)((function(){y()}),[c,y]),(0,a.useEffect)((function(){return window.addEventListener("resize",y,{passive:!0}),function(){window.removeEventListener("resize",y)}}),[y]),{codeBlockRef:f,isEnabled:c,isCodeScrollable:p,toggle:v}),P=function(e){var t,n;return null!=(t=null==e||null==(n=e.match(g))?void 0:n.groups.title)?t:""}(C)||w,z=b(h,{metastring:C,language:O,magicComments:Z}),H=z.lineClassNames,R=z.code,V=null!=L?L:function(e){return Boolean(null==e?void 0:e.includes("showLineNumbers"))}(C);return a.createElement(B,{as:"div",className:(0,s.Z)(E,O&&!E.includes("language-"+O)&&"language-"+O)},P&&a.createElement("div",{className:N.codeBlockTitle},P),a.createElement("div",{className:N.codeBlockContent},a.createElement(W,(0,o.Z)({},x,{theme:S,code:R,language:null!=O?O:"text"}),(function(e){var t=e.className,n=e.tokens,o=e.getLineProps,r=e.getTokenProps;return a.createElement("pre",{tabIndex:0,ref:A.codeBlockRef,className:(0,s.Z)(t,N.codeBlock,"thin-scrollbar")},a.createElement("code",{className:(0,s.Z)(N.codeBlockLines,V&&N.codeBlockLinesWithNumbering)},n.map((function(e,t){return a.createElement(D,{key:t,line:e,getLineProps:o,getTokenProps:r,classNames:H[t],showLineNumbers:V})}))))})),a.createElement("div",{className:N.buttonGroup},(A.isEnabled||A.isCodeScrollable)&&a.createElement(F,{className:N.codeButton,onClick:function(){return A.toggle()},isEnabled:A.isEnabled}),a.createElement(M,{className:N.codeButton,code:R}))))}var q=["children"];function G(e){var t=e.children,n=(0,r.Z)(e,q),s=(0,c.Z)(),l=function(e){return a.Children.toArray(e).some((function(e){return(0,a.isValidElement)(e)}))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof l?$:C;return a.createElement(i,(0,o.Z)({key:String(s)},n),l)}},2613:(e,t)=>{function n(e){let t,n=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))n.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,r,a]=t;if(o&&a){o=parseInt(o),a=parseInt(a);const e=o{r.d(t,{xA:()=>u,yg:()=>g});var n=r(67308);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,o=e.originalType,p=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),s=c(r),f=i,g=s["".concat(p,".").concat(f)]||s[f]||y[f]||o;return r?n.createElement(g,a(a({ref:t},u),{},{components:r})):n.createElement(g,a({ref:t},u))}));function g(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=r.length,a=new Array(o);a[0]=f;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[s]="string"==typeof e?e:i,a[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>g,frontMatter:()=>l,metadata:()=>c,toc:()=>s});var n=r(37782),i=r(32345),o=(r(67308),r(62757)),a=["components"],l={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"version-1.0.26-alpha/api/intersection",title:"intersection",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/1.0.26-alpha/api/intersection",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:s},f="wrapper";function g(e){var t=e.components,r=(0,i.A)(e,a);return(0,o.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"intersection"},"intersection"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/intersection"},"&"))),(0,o.yg)("h2",{id:"string"},"string"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'"L&R" ',(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"intersection(L,R) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,o.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/59058b9c.8e04a184.js b/assets/js/59058b9c.8e04a184.js deleted file mode 100644 index 2d3bfc2f31..0000000000 --- a/assets/js/59058b9c.8e04a184.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6080],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,p=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),s=c(r),m=o,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||i;return r?n.createElement(y,a(a({ref:t},u),{},{components:r})):n.createElement(y,a({ref:t},u))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=m;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[s]="string"==typeof e?e:o,a[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>l,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),i=(r(29901),r(57522)),a=["components"],l={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"version-1.0.26-alpha/api/intersection",title:"intersection",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/1.0.26-alpha/api/intersection",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,a);return(0,i.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"intersection"},"intersection"),(0,i.kt)("h2",{id:"operator"},"operator"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/intersection"},"&"))),(0,i.kt)("h2",{id:"string"},"string"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'"L&R" ',(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"tuple"},"tuple"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"helper"},"helper"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"intersection(L,R) ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,i.kt)("br",null))))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4f91d1fa.9f0b914e.js b/assets/js/598efede.19a30baa.js similarity index 86% rename from assets/js/4f91d1fa.9f0b914e.js rename to assets/js/598efede.19a30baa.js index d564bb0dbd..9794c45992 100644 --- a/assets/js/4f91d1fa.9f0b914e.js +++ b/assets/js/598efede.19a30baa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5520],{82727:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.27-alpha","label":"1.0.27-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.27-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.27-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.27-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.27-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.27-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.27-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7042],{27213:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.28-alpha","label":"1.0.28-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.28-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.28-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.28-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.28-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.28-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.28-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/598efede.316d4204.js b/assets/js/598efede.316d4204.js deleted file mode 100644 index 7b9936f7f0..0000000000 --- a/assets/js/598efede.316d4204.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4582],{2:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.28-alpha","label":"1.0.28-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.28-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.28-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.28-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.28-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.28-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.28-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/5a806f6c.83911eaf.js b/assets/js/5a806f6c.c68f9397.js similarity index 81% rename from assets/js/5a806f6c.83911eaf.js rename to assets/js/5a806f6c.c68f9397.js index db44fbd137..314c440990 100644 --- a/assets/js/5a806f6c.83911eaf.js +++ b/assets/js/5a806f6c.c68f9397.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9604],{57522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.28-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.28-alpha/api/infer",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"infer"},"Infer"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2196],{62757:(e,t,r)=>{r.d(t,{xA:()=>f,yg:()=>m});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.28-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.28-alpha/api/infer",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(y,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"infer"},"Infer"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5c34fe94.1fbb9570.js b/assets/js/5c34fe94.1fbb9570.js new file mode 100644 index 0000000000..28b423aacb --- /dev/null +++ b/assets/js/5c34fe94.1fbb9570.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8126],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=n.createContext({}),c=function(e){var r=n.useContext(l),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(l.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(t),y=o,g=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return t?n.createElement(g,p(p({ref:r},u),{},{components:t})):n.createElement(g,p({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=y;var i={};for(var l in r)hasOwnProperty.call(r,l)&&(i[l]=r[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>l,default:()=>g,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.29-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/parseconfigtuple"},":"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["type", ":", config]')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5c34fe94.e8082b74.js b/assets/js/5c34fe94.e8082b74.js deleted file mode 100644 index f976f286d1..0000000000 --- a/assets/js/5c34fe94.e8082b74.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[815],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.29-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5c45db8c.be220528.js b/assets/js/5c45db8c.3961b4d0.js similarity index 81% rename from assets/js/5c45db8c.be220528.js rename to assets/js/5c45db8c.3961b4d0.js index 738d655270..25da736331 100644 --- a/assets/js/5c45db8c.be220528.js +++ b/assets/js/5c45db8c.3961b4d0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7375],{57522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.25-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.25-alpha/api/infer",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"infer"},"Infer"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3319],{62757:(e,t,r)=>{r.d(t,{xA:()=>f,yg:()=>m});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.25-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.25-alpha/api/infer",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(y,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"infer"},"Infer"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5f7bc296.595a13b8.js b/assets/js/5f7bc296.c92441b4.js similarity index 63% rename from assets/js/5f7bc296.595a13b8.js rename to assets/js/5f7bc296.c92441b4.js index 57dfcf9b60..69fff859cf 100644 --- a/assets/js/5f7bc296.595a13b8.js +++ b/assets/js/5f7bc296.c92441b4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6840],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),s=l(r),y=o,d=s["".concat(i,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[s]="string"==typeof e?e:o,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>c,metadata:()=>l,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],c={hide_table_of_contents:!0},i="type",l={unversionedId:"api/type",id:"api/type",title:"type",description:"text",source:"@site/docs/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/next/api/type",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5463],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),y=l(r),f=o,d=y["".concat(i,".").concat(f)]||y[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[y]="string"==typeof e?e:o,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>c,metadata:()=>l,toc:()=>y});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),p=["components"],c={hide_table_of_contents:!0},i="type",l={unversionedId:"api/type",id:"api/type",title:"type",description:"text",source:"@site/docs/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/next/api/type",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],s={toc:y},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,p);return(0,a.yg)(f,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"type"},"type"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.yg)("hr",null),(0,a.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.yg)("h1",{id:"type-1"},"Type"),(0,a.yg)("h2",{id:"text-1"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/60f4de08.91001263.js b/assets/js/60f4de08.91001263.js deleted file mode 100644 index 03d42cc54b..0000000000 --- a/assets/js/60f4de08.91001263.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4336],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>v});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var c=n.createContext({}),p=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=p(e.components);return n.createElement(c.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=p(r),f=a,v=u["".concat(c,".").concat(f)]||u[f]||d[f]||o;return r?n.createElement(v,i(i({ref:t},s),{},{components:r})):n.createElement(v,i({ref:t},s))}));function v(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=f;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var p=2;p{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>c,default:()=>v,frontMatter:()=>l,metadata:()=>p,toc:()=>u});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),i=["components"],l={hide_table_of_contents:!0},c="validateDivisor",p={unversionedId:"api/validatedivisor",id:"api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/docs/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/next/api/validatedivisor",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},f="wrapper";function v(e){var t=e.components,r=(0,a.Z)(e,i);return(0,o.kt)(f,(0,n.Z)({},d,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatedivisor"},"validateDivisor"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/next/api/validatedivisor"},"%"))),(0,o.kt)("h2",{id:"string"},"string"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/60f4de08.c510e5bb.js b/assets/js/60f4de08.c510e5bb.js new file mode 100644 index 0000000000..fefa0606af --- /dev/null +++ b/assets/js/60f4de08.c510e5bb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2314],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>v});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var c=n.createContext({}),p=function(e){var r=n.useContext(c),t=r;return e&&(t="function"==typeof e?e(r):i(i({},r),e)),t},s=function(e){var r=p(e.components);return n.createElement(c.Provider,{value:r},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=p(t),f=a,v=u["".concat(c,".").concat(f)]||u[f]||d[f]||o;return t?n.createElement(v,i(i({ref:r},s),{},{components:t})):n.createElement(v,i({ref:r},s))}));function v(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=f;var l={};for(var c in r)hasOwnProperty.call(r,c)&&(l[c]=r[c]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var p=2;p{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>c,default:()=>v,frontMatter:()=>l,metadata:()=>p,toc:()=>u});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),i=["components"],l={hide_table_of_contents:!0},c="validateDivisor",p={unversionedId:"api/validatedivisor",id:"api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/docs/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/next/api/validatedivisor",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},f="wrapper";function v(e){var r=e.components,t=(0,a.A)(e,i);return(0,o.yg)(f,(0,n.A)({},d,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"validatedivisor"},"validateDivisor"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/next/api/validatedivisor"},"%"))),(0,o.yg)("h2",{id:"string"},"string"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/612311ec.15c729bb.js b/assets/js/612311ec.15c729bb.js deleted file mode 100644 index ddfb77b2e5..0000000000 --- a/assets/js/612311ec.15c729bb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7119],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{g:()=>y});var r=t(19982),o=t(60024),a=t(53800),i=t(49361),s=t(29901),p=t(43346);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(73268),o=t(68039),a=(t(29901),t(57522)),i=t(28104),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.21-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.21-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/1.0.21-alpha/scopes",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/1.0.21-alpha/"},next:{title:"Keywords",permalink:"/docs/1.0.21-alpha/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.Z)(e,s);return(0,a.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"scopes"},"Scopes"),(0,a.kt)(i.g,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/612311ec.b0f9c3e3.js b/assets/js/612311ec.b0f9c3e3.js new file mode 100644 index 0000000000..b91b08680e --- /dev/null +++ b/assets/js/612311ec.b0f9c3e3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7583],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{$:()=>y});var r=t(29093),o=t(57089),a=t(1434),i=t(75768),s=t(67308),p=t(8426);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(37782),o=t(32345),a=(t(67308),t(62757)),i=t(90307),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.21-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.21-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/1.0.21-alpha/scopes",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/1.0.21-alpha/"},next:{title:"Keywords",permalink:"/docs/1.0.21-alpha/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.A)(e,s);return(0,a.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"scopes"},"Scopes"),(0,a.yg)(i.$,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6181e0da.219bc866.js b/assets/js/6181e0da.219bc866.js new file mode 100644 index 0000000000..02fc34f6fd --- /dev/null +++ b/assets/js/6181e0da.219bc866.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7551],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},s=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},d=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(t),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return t?n.createElement(f,c(c({ref:r},s),{},{components:t})):n.createElement(f,c({ref:r},s))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,c=new Array(a);c[0]=d;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.29-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/api/problem",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,c);return(0,a.yg)(d,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"problem"},"Problem"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6181e0da.e0302217.js b/assets/js/6181e0da.e0302217.js deleted file mode 100644 index 4f07439740..0000000000 --- a/assets/js/6181e0da.e0302217.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6022],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.29-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/api/problem",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/62542541.c7580978.js b/assets/js/62542541.6ab2a248.js similarity index 85% rename from assets/js/62542541.c7580978.js rename to assets/js/62542541.6ab2a248.js index a01e0a2cd3..711079e8dd 100644 --- a/assets/js/62542541.c7580978.js +++ b/assets/js/62542541.6ab2a248.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6250],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=r.createContext({}),u=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=u(e.components);return r.createElement(l.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=u(t),f=o,m=s["".concat(l,".").concat(f)]||s[f]||d[f]||a;return t?r.createElement(m,i(i({ref:n},c),{},{components:t})):r.createElement(m,i({ref:n},c))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[s]="string"==typeof e?e:o,i[1]=p;for(var u=2;u{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>s});var r=t(73268),o=t(68039),a=(t(29901),t(57522)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",u={unversionedId:"api/precompileddefaults",id:"api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/docs/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/next/api/precompileddefaults",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"text",id:"text",level:2}],d={toc:s},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,i);return(0,a.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => Out\n parsedNumber: (In: string) => Out\n parsedInteger: (In: string) => Out\n parsedDate: (In: string) => Out\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8814],{62757:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>m});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=r.createContext({}),u=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=u(e.components);return r.createElement(l.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=u(t),f=o,m=s["".concat(l,".").concat(f)]||s[f]||d[f]||a;return t?r.createElement(m,i(i({ref:n},c),{},{components:t})):r.createElement(m,i({ref:n},c))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[s]="string"==typeof e?e:o,i[1]=p;for(var u=2;u{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>s});var r=t(37782),o=t(32345),a=(t(67308),t(62757)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",u={unversionedId:"api/precompileddefaults",id:"api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/docs/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/next/api/precompileddefaults",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"text",id:"text",level:2}],d={toc:s},f="wrapper";function m(e){var n=e.components,t=(0,o.A)(e,i);return(0,a.yg)(f,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => Out\n parsedNumber: (In: string) => Out\n parsedInteger: (In: string) => Out\n parsedDate: (In: string) => Out\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/629b5b90.52f900a9.js b/assets/js/629b5b90.c4cfda17.js similarity index 74% rename from assets/js/629b5b90.52f900a9.js rename to assets/js/629b5b90.c4cfda17.js index f797be5f0f..22845c97bb 100644 --- a/assets/js/629b5b90.52f900a9.js +++ b/assets/js/629b5b90.c4cfda17.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5637],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(73268),o=t(68039),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.24-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.24-alpha/api/scope",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4848],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),y=o,f=u["".concat(p,".").concat(y)]||u[y]||d[y]||s;return t?r.createElement(f,a(a({ref:n},l),{},{components:t})):r.createElement(f,a({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=y;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(37782),o=t(32345),s=(t(67308),t(62757)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.24-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.24-alpha/api/scope",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},y="wrapper";function f(e){var n=e.components,t=(0,o.A)(e,a);return(0,s.yg)(y,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.yg)("h1",{id:"scope"},"scope"),(0,s.yg)("h2",{id:"text"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.yg)("hr",null),(0,s.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.yg)("h1",{id:"scope-1"},"Scope"),(0,s.yg)("h2",{id:"text-1"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6309a6fc.04fc39a6.js b/assets/js/6309a6fc.04fc39a6.js new file mode 100644 index 0000000000..709c0729a0 --- /dev/null +++ b/assets/js/6309a6fc.04fc39a6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1423],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>g});var n=r(67308);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,o=e.originalType,p=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),s=c(r),f=i,g=s["".concat(p,".").concat(f)]||s[f]||y[f]||o;return r?n.createElement(g,l(l({ref:t},u),{},{components:r})):n.createElement(g,l({ref:t},u))}));function g(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=r.length,l=new Array(o);l[0]=f;var a={};for(var p in t)hasOwnProperty.call(t,p)&&(a[p]=t[p]);a.originalType=e,a[s]="string"==typeof e?e:i,l[1]=a;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>g,frontMatter:()=>a,metadata:()=>c,toc:()=>s});var n=r(37782),i=r(32345),o=(r(67308),r(62757)),l=["components"],a={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"api/intersection",title:"intersection",description:"operator",source:"@site/docs/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/next/api/intersection",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:s},f="wrapper";function g(e){var t=e.components,r=(0,i.A)(e,l);return(0,o.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"intersection"},"intersection"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/next/api/intersection"},"&"))),(0,o.yg)("h2",{id:"string"},"string"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'"L&R" ',(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"intersection(L,R) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,o.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6309a6fc.08a8fa35.js b/assets/js/6309a6fc.08a8fa35.js deleted file mode 100644 index 6ada1ed1cc..0000000000 --- a/assets/js/6309a6fc.08a8fa35.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6843],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,p=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),s=c(r),m=o,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||i;return r?n.createElement(y,l(l({ref:t},u),{},{components:r})):n.createElement(y,l({ref:t},u))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,l=new Array(i);l[0]=m;var a={};for(var p in t)hasOwnProperty.call(t,p)&&(a[p]=t[p]);a.originalType=e,a[s]="string"==typeof e?e:o,l[1]=a;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>a,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),i=(r(29901),r(57522)),l=["components"],a={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"api/intersection",title:"intersection",description:"operator",source:"@site/docs/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/next/api/intersection",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,l);return(0,i.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"intersection"},"intersection"),(0,i.kt)("h2",{id:"operator"},"operator"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"/docs/next/api/intersection"},"&"))),(0,i.kt)("h2",{id:"string"},"string"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'"L&R" ',(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"tuple"},"tuple"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"helper"},"helper"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"intersection(L,R) ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,i.kt)("br",null))))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/632d73df.063ea854.js b/assets/js/632d73df.063ea854.js deleted file mode 100644 index d7fd211987..0000000000 --- a/assets/js/632d73df.063ea854.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1403],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,p=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),s=c(r),m=o,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||i;return r?n.createElement(y,a(a({ref:t},u),{},{components:r})):n.createElement(y,a({ref:t},u))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=m;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[s]="string"==typeof e?e:o,a[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>l,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),i=(r(29901),r(57522)),a=["components"],l={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"version-1.0.21-alpha/api/intersection",title:"intersection",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/1.0.21-alpha/api/intersection",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,a);return(0,i.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"intersection"},"intersection"),(0,i.kt)("h2",{id:"operator"},"operator"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/intersection"},"&"))),(0,i.kt)("h2",{id:"string"},"string"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'"L&R" ',(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"tuple"},"tuple"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"helper"},"helper"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"intersection(L,R) ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,i.kt)("br",null))))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/632d73df.c65ff9f7.js b/assets/js/632d73df.c65ff9f7.js new file mode 100644 index 0000000000..f077192174 --- /dev/null +++ b/assets/js/632d73df.c65ff9f7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6084],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>g});var n=r(67308);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,o=e.originalType,p=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),s=c(r),f=i,g=s["".concat(p,".").concat(f)]||s[f]||y[f]||o;return r?n.createElement(g,a(a({ref:t},u),{},{components:r})):n.createElement(g,a({ref:t},u))}));function g(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=r.length,a=new Array(o);a[0]=f;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[s]="string"==typeof e?e:i,a[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>g,frontMatter:()=>l,metadata:()=>c,toc:()=>s});var n=r(37782),i=r(32345),o=(r(67308),r(62757)),a=["components"],l={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"version-1.0.21-alpha/api/intersection",title:"intersection",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/1.0.21-alpha/api/intersection",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:s},f="wrapper";function g(e){var t=e.components,r=(0,i.A)(e,a);return(0,o.yg)(f,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"intersection"},"intersection"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/intersection"},"&"))),(0,o.yg)("h2",{id:"string"},"string"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'"L&R" ',(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"intersection(L,R) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,o.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/64a3c6e9.21335dab.js b/assets/js/64a3c6e9.21335dab.js new file mode 100644 index 0000000000..648005e026 --- /dev/null +++ b/assets/js/64a3c6e9.21335dab.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2124],{62757:(e,t,a)=>{a.d(t,{xA:()=>y,yg:()=>c});var n=a(67308);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),g=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},y=function(e){var t=g(e.components);return n.createElement(o.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),d=g(a),m=r,c=d["".concat(o,".").concat(m)]||d[m]||u[m]||l;return a?n.createElement(c,p(p({ref:t},y),{},{components:a})):n.createElement(c,p({ref:t},y))}));function c(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[d]="string"==typeof e?e:r,p[1]=i;for(var g=2;g{a.r(t),a.d(t,{assets:()=>y,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var n=a(37782),r=a(32345),l=(a(67308),a(62757)),p=["components"],i={hide_table_of_contents:!0},o="Operators",g={unversionedId:"api/operators",id:"version-1.0.28-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.28-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.28-alpha/api/operators",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.28-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.28-alpha/api"}},y={},d=[{value:"Operating Table",id:"operating-table",level:2}],u={toc:d},m="wrapper";function c(e){var t=e.components,a=(0,r.A)(e,p);return(0,l.yg)(m,(0,n.A)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"operators"},"Operators"),(0,l.yg)("h2",{id:"operating-table"},"Operating Table"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"operator"),(0,l.yg)("th",{parentName:"tr",align:null},"string"),(0,l.yg)("th",{parentName:"tr",align:null},"tuple"),(0,l.yg)("th",{parentName:"tr",align:null},"helper"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/arrayof"},"arrayOf")),(0,l.yg)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.yg)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.yg)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/instanceof"},"instanceOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/intersection"},"&")),(0,l.yg)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.yg)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/keyof"},"keyOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.yg)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/morph"},"|",">")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.yg)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/narrow"},"=>")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/union"},"|")),(0,l.yg)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.yg)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/valueof"},"===")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/parseconfigtuple"},":")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/validatebound"},"bound")),(0,l.yg)("td",{parentName:"tr",align:null},'"N{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var o=n.createContext({}),d=function(t){var e=n.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):p(p({},e),t)),a},u=function(t){var e=d(t.components);return n.createElement(o.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(a),c=r,s=m["".concat(o,".").concat(c)]||m[c]||k[c]||l;return a?n.createElement(s,p(p({ref:e},u),{},{components:a})):n.createElement(s,p({ref:e},u))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,p=new Array(l);p[0]=c;var i={};for(var o in e)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i[m]="string"==typeof t?t:r,p[1]=i;for(var d=2;d{a.r(e),a.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var n=a(73268),r=a(68039),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.28-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.28-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.28-alpha/api/operators",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.28-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.28-alpha/api"}},u={},m=[{value:"Operating Table",id:"operating-table",level:2}],k={toc:m},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,p);return(0,l.kt)(c,(0,n.Z)({},k,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"operators"},"Operators"),(0,l.kt)("h2",{id:"operating-table"},"Operating Table"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"operator"),(0,l.kt)("th",{parentName:"tr",align:null},"string"),(0,l.kt)("th",{parentName:"tr",align:null},"tuple"),(0,l.kt)("th",{parentName:"tr",align:null},"helper"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/arrayof"},"arrayOf")),(0,l.kt)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.kt)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.kt)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/instanceof"},"instanceOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/intersection"},"&")),(0,l.kt)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.kt)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/keyof"},"keyOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.kt)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/morph"},"|",">")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.kt)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/narrow"},"=>")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/union"},"|")),(0,l.kt)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.kt)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/valueof"},"===")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/parseconfigtuple"},":")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.28-alpha/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d=a.createContext({}),m=function(t){var e=a.useContext(d),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(d.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,o=p(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(d,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var p={};for(var d in e)hasOwnProperty.call(e,d)&&(p[d]=e[d]);p.originalType=t,p[k]="string"==typeof t?t:r,i[1]=p;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>g,frontMatter:()=>p,metadata:()=>m,toc:()=>k});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.21-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.21-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.21-alpha/api/keywords",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.21-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.21-alpha/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/64b0bc0b.96b5ee8a.js b/assets/js/64b0bc0b.96b5ee8a.js new file mode 100644 index 0000000000..2e0a66aa72 --- /dev/null +++ b/assets/js/64b0bc0b.96b5ee8a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3532],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>N});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):g(g({},t),e)),n},y=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},m="mdxType",o={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,p=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),m=d(n),u=r,N=m["".concat(p,".").concat(u)]||m[u]||o[u]||l;return n?a.createElement(N,g(g({ref:t},y),{},{components:n})):a.createElement(N,g({ref:t},y))}));function N(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,g=new Array(l);g[0]=u;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[m]="string"==typeof e?e:r,g[1]=i;for(var d=2;d{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>p,default:()=>N,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),g=["components"],i={hide_table_of_contents:!0},p="Keywords",d={unversionedId:"api/keywords",id:"version-1.0.21-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.21-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.21-alpha/api/keywords",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.21-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.21-alpha/api/operators"}},y={},m=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],o={toc:m},u="wrapper";function N(e){var t=e.components,n=(0,r.A)(e,g);return(0,l.yg)(u,(0,a.A)({},o,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"keywords"},"Keywords"),(0,l.yg)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))),(0,l.yg)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))),(0,l.yg)("h2",{id:"validationscope"},"validationScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6543d709.8b2f36e5.js b/assets/js/6543d709.68e8a3ce.js similarity index 54% rename from assets/js/6543d709.8b2f36e5.js rename to assets/js/6543d709.68e8a3ce.js index a661e16a96..3c778e41d8 100644 --- a/assets/js/6543d709.8b2f36e5.js +++ b/assets/js/6543d709.68e8a3ce.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3645],{57522:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=a,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||o;return t?n.createElement(d,l(l({ref:r},u),{},{components:t})):n.createElement(d,l({ref:r},u))}));function d(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=m;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[s]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>s});var n=t(73268),a=t(68039),o=(t(29901),t(57522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.26-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/1.0.26-alpha/api/narrow",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],f={toc:s},m="wrapper";function d(e){var r=e.components,t=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"narrow"},"narrow"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/narrow"},"=>"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"example"},"example"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1249],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),f=a,m=y["".concat(i,".").concat(f)]||y[f]||s[f]||o;return t?n.createElement(m,l(l({ref:r},u),{},{components:t})):n.createElement(m,l({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=f;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.26-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.26-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/1.0.26-alpha/api/narrow",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],s={toc:y},f="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,l);return(0,o.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"narrow"},"narrow"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.26-alpha/api/narrow"},"=>"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"example"},"example"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("pre",{parentName:"li"},(0,o.yg)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/661942b6.2b649966.js b/assets/js/661942b6.2b649966.js deleted file mode 100644 index f142bda654..0000000000 --- a/assets/js/661942b6.2b649966.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[15],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(r),v=a,f=u["".concat(p,".").concat(v)]||u[v]||d[v]||o;return r?n.createElement(f,i(i({ref:t},s),{},{components:r})):n.createElement(f,i({ref:t},s))}));function f(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=v;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),i=["components"],l={hide_table_of_contents:!0},p="validateDivisor",c={unversionedId:"api/validatedivisor",id:"version-1.0.19-alpha/api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/1.0.19-alpha/api/validatedivisor",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},v="wrapper";function f(e){var t=e.components,r=(0,a.Z)(e,i);return(0,o.kt)(v,(0,n.Z)({},d,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatedivisor"},"validateDivisor"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/validatedivisor"},"%"))),(0,o.kt)("h2",{id:"string"},"string"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/661942b6.b32f8c5d.js b/assets/js/661942b6.b32f8c5d.js new file mode 100644 index 0000000000..219989c0a3 --- /dev/null +++ b/assets/js/661942b6.b32f8c5d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6199],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>f});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):i(i({},r),e)),t},s=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},v=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(t),v=a,f=u["".concat(p,".").concat(v)]||u[v]||d[v]||o;return t?n.createElement(f,i(i({ref:r},s),{},{components:t})):n.createElement(f,i({ref:r},s))}));function f(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=v;var l={};for(var p in r)hasOwnProperty.call(r,p)&&(l[p]=r[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var c=2;c{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),i=["components"],l={hide_table_of_contents:!0},p="validateDivisor",c={unversionedId:"api/validatedivisor",id:"version-1.0.19-alpha/api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/1.0.19-alpha/api/validatedivisor",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},v="wrapper";function f(e){var r=e.components,t=(0,a.A)(e,i);return(0,o.yg)(v,(0,n.A)({},d,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"validatedivisor"},"validateDivisor"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/validatedivisor"},"%"))),(0,o.yg)("h2",{id:"string"},"string"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/66223e25.055dc264.js b/assets/js/66223e25.055dc264.js new file mode 100644 index 0000000000..0fd2b490b8 --- /dev/null +++ b/assets/js/66223e25.055dc264.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2504],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),f=a,m=y["".concat(i,".").concat(f)]||y[f]||s[f]||o;return t?n.createElement(m,l(l({ref:r},u),{},{components:t})):n.createElement(m,l({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=f;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.29-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/api/narrow",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],s={toc:y},f="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,l);return(0,o.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"narrow"},"narrow"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/api/narrow"},"=>"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"example"},"example"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("pre",{parentName:"li"},(0,o.yg)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/66223e25.8d772451.js b/assets/js/66223e25.8d772451.js deleted file mode 100644 index dc19a68a97..0000000000 --- a/assets/js/66223e25.8d772451.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[318],{57522:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=a,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||o;return t?n.createElement(d,l(l({ref:r},u),{},{components:t})):n.createElement(d,l({ref:r},u))}));function d(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=m;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[s]="string"==typeof e?e:a,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>s});var n=t(73268),a=t(68039),o=(t(29901),t(57522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.29-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/api/narrow",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],f={toc:s},m="wrapper";function d(e){var r=e.components,t=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"narrow"},"narrow"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/api/narrow"},"=>"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"example"},"example"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/664634ec.6c101d36.js b/assets/js/664634ec.ff3fc0d5.js similarity index 57% rename from assets/js/664634ec.6c101d36.js rename to assets/js/664634ec.ff3fc0d5.js index 7a5c37e06f..5ef3126174 100644 --- a/assets/js/664634ec.6c101d36.js +++ b/assets/js/664634ec.ff3fc0d5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[582],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>y});var r=t(29901);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(73268),i=t(68039),o=(t(29901),t(57522)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.27-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/1.0.27-alpha/api/inferdefinition",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.Z)(e,a);return(0,o.kt)(u,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[212],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>y});var r=t(67308);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(37782),i=t(32345),o=(t(67308),t(62757)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.27-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/1.0.27-alpha/api/inferdefinition",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.A)(e,a);return(0,o.yg)(u,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/66ab3f82.667c9b25.js b/assets/js/66ab3f82.667c9b25.js deleted file mode 100644 index 391ad4113d..0000000000 --- a/assets/js/66ab3f82.667c9b25.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6583],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),m=a,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||o;return r?n.createElement(y,c(c({ref:t},u),{},{components:r})):n.createElement(y,c({ref:t},u))}));function y(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,c=new Array(o);c[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.24-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.24-alpha/api/ark",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,a.Z)(e,c);return(0,o.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"ark"},"ark"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/66ab3f82.9dd0802c.js b/assets/js/66ab3f82.9dd0802c.js new file mode 100644 index 0000000000..7c59eabcb2 --- /dev/null +++ b/assets/js/66ab3f82.9dd0802c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2415],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},u=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(t),y=a,m=s["".concat(p,".").concat(y)]||s[y]||f[y]||o;return t?n.createElement(m,c(c({ref:r},u),{},{components:t})):n.createElement(m,c({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,c=new Array(o);c[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.24-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.24-alpha/api/ark",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},y="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,c);return(0,o.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"ark"},"ark"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/66d34ef6.4f1e8943.js b/assets/js/66d34ef6.4f1e8943.js new file mode 100644 index 0000000000..d7a7357550 --- /dev/null +++ b/assets/js/66d34ef6.4f1e8943.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3105],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},u="mdxType",y={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=p(t),d=o,f=u["".concat(c,".").concat(d)]||u[d]||y[d]||s;return t?r.createElement(f,a(a({ref:n},l),{},{components:t})):r.createElement(f,a({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=d;var i={};for(var c in n)hasOwnProperty.call(n,c)&&(i[c]=n[c]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>f,frontMatter:()=>i,metadata:()=>p,toc:()=>u});var r=t(37782),o=t(32345),s=(t(67308),t(62757)),a=["components"],i={hide_table_of_contents:!0},c="scope",p={unversionedId:"api/scope",id:"api/scope",title:"scope",description:"text",source:"@site/docs/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/next/api/scope",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],y={toc:u},d="wrapper";function f(e){var n=e.components,t=(0,o.A)(e,a);return(0,s.yg)(d,(0,r.A)({},y,t,{components:n,mdxType:"MDXLayout"}),(0,s.yg)("h1",{id:"scope"},"scope"),(0,s.yg)("h2",{id:"text"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.yg)("hr",null),(0,s.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.yg)("h1",{id:"scope-1"},"Scope"),(0,s.yg)("h2",{id:"text-1"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: Cache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/66d34ef6.f2180190.js b/assets/js/66d34ef6.f2180190.js deleted file mode 100644 index 99a7d3028c..0000000000 --- a/assets/js/66d34ef6.f2180190.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[408],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=p(t),f=o,m=u["".concat(c,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var c in n)hasOwnProperty.call(n,c)&&(i[c]=n[c]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>u});var r=t(73268),o=t(68039),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},c="scope",p={unversionedId:"api/scope",id:"api/scope",title:"scope",description:"text",source:"@site/docs/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/next/api/scope",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: Cache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6753.f6cd7b72.js b/assets/js/6753.f6cd7b72.js new file mode 100644 index 0000000000..3acc89d509 --- /dev/null +++ b/assets/js/6753.f6cd7b72.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6753],{39134:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var n=a(67308),l=a(26145),o=a(53741),r=a(70114);function i(){return n.createElement(n.Fragment,null,n.createElement(o.be,{title:(0,l.T)({id:"theme.NotFound.title",message:"Page Not Found"})}),n.createElement(r.A,null,n.createElement("main",{className:"container margin-vert--xl"},n.createElement("div",{className:"row"},n.createElement("div",{className:"col col--6 col--offset-3"},n.createElement("h1",{className:"hero__title"},n.createElement(l.A,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),n.createElement("p",null,n.createElement(l.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),n.createElement("p",null,n.createElement(l.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}}}]); \ No newline at end of file diff --git a/assets/js/693c4f31.457684e3.js b/assets/js/693c4f31.457684e3.js new file mode 100644 index 0000000000..21912715fb --- /dev/null +++ b/assets/js/693c4f31.457684e3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6528],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{$:()=>y});var r=t(29093),o=t(57089),a=t(1434),i=t(75768),s=t(67308),p=t(8426);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(37782),o=t(32345),a=(t(67308),t(62757)),i=t(75263),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.25-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.25-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/1.0.25-alpha/scopes",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/1.0.25-alpha/"},next:{title:"Keywords",permalink:"/docs/1.0.25-alpha/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.A)(e,s);return(0,a.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"scopes"},"Scopes"),(0,a.yg)(i.$,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/693c4f31.85f66763.js b/assets/js/693c4f31.85f66763.js deleted file mode 100644 index 187a9b0b2c..0000000000 --- a/assets/js/693c4f31.85f66763.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3332],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{g:()=>y});var r=t(19982),o=t(60024),a=t(53800),i=t(49361),s=t(29901),p=t(43346);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(73268),o=t(68039),a=(t(29901),t(57522)),i=t(42642),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.25-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.25-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/1.0.25-alpha/scopes",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/1.0.25-alpha/"},next:{title:"Keywords",permalink:"/docs/1.0.25-alpha/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.Z)(e,s);return(0,a.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"scopes"},"Scopes"),(0,a.kt)(i.g,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/699e8c65.c563452a.js b/assets/js/699e8c65.c563452a.js new file mode 100644 index 0000000000..58cbde3426 --- /dev/null +++ b/assets/js/699e8c65.c563452a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2206],{62757:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>f});var r=t(67308);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{$:()=>y});var r=t(29093),a=t(57089),o=t(1434),i=t(75768),s=t(67308),p=t(8426);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(37782),a=t(32345),o=(t(67308),t(62757)),i=t(75263),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.25-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.25-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.25-alpha/",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.25-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.A)(e,s);return(0,o.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"getting-started"},"Getting Started"),(0,o.yg)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.yg)("sub",null,(0,o.yg)("sub",null,"\ud83d\udce6",(0,o.yg)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.yg)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.yg)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.yg)("code",null,"npm install arktype"),(0,o.yg)("sub",null,"(or whatever package manager you prefer)"),(0,o.yg)("br",null),(0,o.yg)("p",null,"Our types are tested in ",(0,o.yg)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.yg)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.yg)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.yg)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.yg)("p",null,(0,o.yg)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.yg)("h2",{id:"your-first-type"},"Your first type"),(0,o.yg)(i.$,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/699e8c65.e8b55ffd.js b/assets/js/699e8c65.e8b55ffd.js deleted file mode 100644 index 0570ee5efb..0000000000 --- a/assets/js/699e8c65.e8b55ffd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3311],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(19982),a=t(60024),o=t(53800),i=t(49361),s=t(29901),p=t(43346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(73268),a=t(68039),o=(t(29901),t(57522)),i=t(42642),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.25-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.25-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.25-alpha/",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.25-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/9b8bb8a5.669387de.js b/assets/js/6a5e2130.02cc6aa4.js similarity index 69% rename from assets/js/9b8bb8a5.669387de.js rename to assets/js/6a5e2130.02cc6aa4.js index 66cb7bb344..bdf52e70d6 100644 --- a/assets/js/9b8bb8a5.669387de.js +++ b/assets/js/6a5e2130.02cc6aa4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[440],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(73268),o=t(68039),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.27-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.27-alpha/api/scope",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[508],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),y=o,f=u["".concat(p,".").concat(y)]||u[y]||d[y]||s;return t?r.createElement(f,a(a({ref:n},l),{},{components:t})):r.createElement(f,a({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=y;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(37782),o=t(32345),s=(t(67308),t(62757)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.28-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.28-alpha/api/scope",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},y="wrapper";function f(e){var n=e.components,t=(0,o.A)(e,a);return(0,s.yg)(y,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.yg)("h1",{id:"scope"},"scope"),(0,s.yg)("h2",{id:"text"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.yg)("hr",null),(0,s.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.yg)("h1",{id:"scope-1"},"Scope"),(0,s.yg)("h2",{id:"text-1"},"text"),(0,s.yg)("pre",null,(0,s.yg)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6a98dd43.1d0189ab.js b/assets/js/6a98dd43.1d0189ab.js deleted file mode 100644 index 5c11f15d5d..0000000000 --- a/assets/js/6a98dd43.1d0189ab.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[589],{57522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(i,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>f});var n=t(73268),a=t(68039),l=(t(29901),t(57522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.21-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.21-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6a98dd43.83b6d78c.js b/assets/js/6a98dd43.83b6d78c.js new file mode 100644 index 0000000000..03873fa523 --- /dev/null +++ b/assets/js/6a98dd43.83b6d78c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9292],{62757:(e,r,t)=>{t.d(r,{xA:()=>y,yg:()=>g});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},y=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},c="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=u(t),s=a,g=c["".concat(i,".").concat(s)]||c[s]||f[s]||l;return t?n.createElement(g,o(o({ref:r},y),{},{components:t})):n.createElement(g,o({ref:r},y))}));function g(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>y,contentTitle:()=>i,default:()=>g,frontMatter:()=>p,metadata:()=>u,toc:()=>c});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.21-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.21-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:c},s="wrapper";function g(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"arrayof"},"arrayOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/arrayof"},"arrayOf"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"T[]" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6b349b64.19327f9f.js b/assets/js/6b349b64.19327f9f.js new file mode 100644 index 0000000000..1c968fddf9 --- /dev/null +++ b/assets/js/6b349b64.19327f9f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3325],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>v});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var u=n.createContext({}),i=function(e){var r=n.useContext(u),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=i(e.components);return n.createElement(u.Provider,{value:r},e.children)},f="mdxType",y={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(t),s=a,v=f["".concat(u,".").concat(s)]||f[s]||y[s]||l;return t?n.createElement(v,o(o({ref:r},c),{},{components:t})):n.createElement(v,o({ref:r},c))}));function v(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var u in r)hasOwnProperty.call(r,u)&&(p[u]=r[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>u,default:()=>v,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.28-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.28-alpha/api/valueof",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:f},s="wrapper";function v(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},y,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"valueof"},"valueOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.28-alpha/api/valueof"},"==="))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'["===", T]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"valueOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.yg)("br",null))))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6b349b64.aa9ebc99.js b/assets/js/6b349b64.aa9ebc99.js deleted file mode 100644 index 2e3062be45..0000000000 --- a/assets/js/6b349b64.aa9ebc99.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5722],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=n.createContext({}),i=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},c=function(e){var t=i(e.components);return n.createElement(u.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(r),v=a,m=f["".concat(u,".").concat(v)]||f[v]||s[v]||l;return r?n.createElement(m,o(o({ref:t},c),{},{components:r})):n.createElement(m,o({ref:t},c))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,o=new Array(l);o[0]=v;var p={};for(var u in t)hasOwnProperty.call(t,u)&&(p[u]=t[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=r(73268),a=r(68039),l=(r(29901),r(57522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.28-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.28-alpha/api/valueof",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},v="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,o);return(0,l.kt)(v,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"valueof"},"valueOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.28-alpha/api/valueof"},"==="))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'["===", T]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"valueOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6b600ad8.2fe9e4ad.js b/assets/js/6b600ad8.2fe9e4ad.js deleted file mode 100644 index 182f296940..0000000000 --- a/assets/js/6b600ad8.2fe9e4ad.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[352],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(73268),a=n(68039),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.20-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.20-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6b600ad8.a6fe1d8f.js b/assets/js/6b600ad8.a6fe1d8f.js new file mode 100644 index 0000000000..390d78b741 --- /dev/null +++ b/assets/js/6b600ad8.a6fe1d8f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4312],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),g=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},y=function(e){var t=g(e.components);return r.createElement(i.Provider,{value:t},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=g(n),u=a,m=c["".concat(i,".").concat(u)]||c[u]||d[u]||l;return n?r.createElement(m,o(o({ref:t},y),{},{components:n})):r.createElement(m,o({ref:t},y))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,o=new Array(l);o[0]=u;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>g,toc:()=>c});var r=n(37782),a=n(32345),l=(n(67308),n(62757)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",g={unversionedId:"api/jsobjectsscope",id:"version-1.0.20-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.20-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"text",id:"text",level:2}],d={toc:c},u="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,o);return(0,l.yg)(u,(0,r.A)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6b6373f3.a326161b.js b/assets/js/6b6373f3.a326161b.js deleted file mode 100644 index d51b8027df..0000000000 --- a/assets/js/6b6373f3.a326161b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4753],{57522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d=a.createContext({}),m=function(t){var e=a.useContext(d),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(d.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,o=p(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(d,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var p={};for(var d in e)hasOwnProperty.call(e,d)&&(p[d]=e[d]);p.originalType=t,p[k]="string"==typeof t?t:r,i[1]=p;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>g,frontMatter:()=>p,metadata:()=>m,toc:()=>k});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.23-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.23-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.23-alpha/api/keywords",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.23-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.23-alpha/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6b6373f3.de60af7b.js b/assets/js/6b6373f3.de60af7b.js new file mode 100644 index 0000000000..b1513820c8 --- /dev/null +++ b/assets/js/6b6373f3.de60af7b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9085],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>N});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):g(g({},t),e)),n},y=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},m="mdxType",o={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,p=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),m=d(n),u=r,N=m["".concat(p,".").concat(u)]||m[u]||o[u]||l;return n?a.createElement(N,g(g({ref:t},y),{},{components:n})):a.createElement(N,g({ref:t},y))}));function N(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,g=new Array(l);g[0]=u;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[m]="string"==typeof e?e:r,g[1]=i;for(var d=2;d{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>p,default:()=>N,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),g=["components"],i={hide_table_of_contents:!0},p="Keywords",d={unversionedId:"api/keywords",id:"version-1.0.23-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.23-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.23-alpha/api/keywords",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.23-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.23-alpha/api/operators"}},y={},m=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],o={toc:m},u="wrapper";function N(e){var t=e.components,n=(0,r.A)(e,g);return(0,l.yg)(u,(0,a.A)({},o,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"keywords"},"Keywords"),(0,l.yg)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))),(0,l.yg)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))),(0,l.yg)("h2",{id:"validationscope"},"validationScope"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6bb186f5.0e227780.js b/assets/js/6bb186f5.0e227780.js new file mode 100644 index 0000000000..b71167dffc --- /dev/null +++ b/assets/js/6bb186f5.0e227780.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[273],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>v});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var u=n.createContext({}),i=function(e){var r=n.useContext(u),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=i(e.components);return n.createElement(u.Provider,{value:r},e.children)},f="mdxType",y={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(t),s=a,v=f["".concat(u,".").concat(s)]||f[s]||y[s]||l;return t?n.createElement(v,o(o({ref:r},c),{},{components:t})):n.createElement(v,o({ref:r},c))}));function v(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var u in r)hasOwnProperty.call(r,u)&&(p[u]=r[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>u,default:()=>v,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.19-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.19-alpha/api/valueof",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:f},s="wrapper";function v(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},y,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"valueof"},"valueOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/valueof"},"==="))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'["===", T]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"valueOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.yg)("br",null))))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6bb186f5.3df7cc82.js b/assets/js/6bb186f5.3df7cc82.js deleted file mode 100644 index 9d9f50051b..0000000000 --- a/assets/js/6bb186f5.3df7cc82.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7399],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=n.createContext({}),i=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},c=function(e){var t=i(e.components);return n.createElement(u.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(r),v=a,m=f["".concat(u,".").concat(v)]||f[v]||s[v]||l;return r?n.createElement(m,o(o({ref:t},c),{},{components:r})):n.createElement(m,o({ref:t},c))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,o=new Array(l);o[0]=v;var p={};for(var u in t)hasOwnProperty.call(t,u)&&(p[u]=t[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=r(73268),a=r(68039),l=(r(29901),r(57522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.19-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.19-alpha/api/valueof",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},v="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,o);return(0,l.kt)(v,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"valueof"},"valueOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/valueof"},"==="))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'["===", T]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"valueOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6d2bdafa.a5e5a057.js b/assets/js/6d2bdafa.79748ed8.js similarity index 59% rename from assets/js/6d2bdafa.a5e5a057.js rename to assets/js/6d2bdafa.79748ed8.js index f1c9f40470..dbd35e5b23 100644 --- a/assets/js/6d2bdafa.a5e5a057.js +++ b/assets/js/6d2bdafa.79748ed8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3597],{57522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(29901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.25-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.25-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6419],{62757:(e,n,r)=>{r.d(n,{xA:()=>l,yg:()=>g});var t=r(67308);function a(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=a,g=u["".concat(c,".").concat(m)]||u[m]||f[m]||o;return r?t.createElement(g,i(i({ref:n},l),{},{components:r})):t.createElement(g,i({ref:n},l))}));function g(e,n){var r=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>g,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(37782),a=r(32345),o=(r(67308),r(62757)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.25-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.25-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function g(e){var n=e.components,r=(0,a.A)(e,i);return(0,o.yg)(m,(0,t.A)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"arkscope"},"arkScope"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6f3866ae.9fa46b82.js b/assets/js/6f3866ae.9fa46b82.js new file mode 100644 index 0000000000..fd2a03d6b4 --- /dev/null +++ b/assets/js/6f3866ae.9fa46b82.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4620],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>m});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),l=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},u=function(e){var r=l(e.components);return n.createElement(p.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(t),y=a,m=s["".concat(p,".").concat(y)]||s[y]||f[y]||o;return t?n.createElement(m,c(c({ref:r},u),{},{components:t})):n.createElement(m,c({ref:r},u))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,c=new Array(o);c[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=t(37782),a=t(32345),o=(t(67308),t(62757)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.28-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.28-alpha/api/ark",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},y="wrapper";function m(e){var r=e.components,t=(0,a.A)(e,c);return(0,o.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"ark"},"ark"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6f3866ae.ccb18918.js b/assets/js/6f3866ae.ccb18918.js deleted file mode 100644 index e02c6fc14d..0000000000 --- a/assets/js/6f3866ae.ccb18918.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[874],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),m=a,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||o;return r?n.createElement(y,c(c({ref:t},u),{},{components:r})):n.createElement(y,c({ref:t},u))}));function y(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,c=new Array(o);c[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.28-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.28-alpha/api/ark",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,a.Z)(e,c);return(0,o.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"ark"},"ark"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6f6ec12c.78a598f7.js b/assets/js/6f6ec12c.78a598f7.js new file mode 100644 index 0000000000..7c3f8ab59c --- /dev/null +++ b/assets/js/6f6ec12c.78a598f7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4649],{62757:(e,t,n)=>{n.d(t,{xA:()=>u,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},y=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),y=a,m=s["".concat(c,".").concat(y)]||s[y]||f[y]||o;return n?r.createElement(m,l(l({ref:t},u),{},{components:n})):r.createElement(m,l({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(37782),a=n(32345),o=(n(67308),n(62757)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.29-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/api/instanceof",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},y="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,l);return(0,o.yg)(y,(0,r.A)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"instanceof"},"instanceOf"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/api/instanceof"},"instanceOf"))),(0,o.yg)("h2",{id:"tuple"},"tuple"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.yg)("br",null))),(0,o.yg)("h2",{id:"helper"},"helper"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.yg)("br",null)),(0,o.yg)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.yg)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6f6ec12c.8f770a57.js b/assets/js/6f6ec12c.8f770a57.js deleted file mode 100644 index b0a7b56969..0000000000 --- a/assets/js/6f6ec12c.8f770a57.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2188],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),a=n(68039),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.29-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.29-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/api/instanceof",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6fdaf75b.5b05a5b6.js b/assets/js/6fdaf75b.5b05a5b6.js deleted file mode 100644 index ccb2352d87..0000000000 --- a/assets/js/6fdaf75b.5b05a5b6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8491],{57522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(29901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,a(a({ref:t},c),{},{components:n})):r.createElement(d,a({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,a=new Array(l);a[0]=m;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i[s]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),o=n(68039),l=(n(29901),n(57522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.27-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.27-alpha/api/union",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6fdaf75b.eab1e61c.js b/assets/js/6fdaf75b.eab1e61c.js new file mode 100644 index 0000000000..9e1655da9c --- /dev/null +++ b/assets/js/6fdaf75b.eab1e61c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7930],{62757:(e,n,r)=>{r.d(n,{xA:()=>c,yg:()=>f});var t=r(67308);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function a(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=t.createContext({}),p=function(e){var n=t.useContext(u),r=n;return e&&(r="function"==typeof e?e(n):a(a({},n),e)),r},c=function(e){var n=p(e.components);return t.createElement(u.Provider,{value:n},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},g=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),y=p(r),g=o,f=y["".concat(u,".").concat(g)]||y[g]||s[g]||l;return r?t.createElement(f,a(a({ref:n},c),{},{components:r})):t.createElement(f,a({ref:n},c))}));function f(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var l=r.length,a=new Array(l);a[0]=g;var i={};for(var u in n)hasOwnProperty.call(n,u)&&(i[u]=n[u]);i.originalType=e,i[y]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>f,frontMatter:()=>i,metadata:()=>p,toc:()=>y});var t=r(37782),o=r(32345),l=(r(67308),r(62757)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.27-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.27-alpha/api/union",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},g="wrapper";function f(e){var n=e.components,r=(0,o.A)(e,a);return(0,l.yg)(g,(0,t.A)({},s,r,{components:n,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"union"},"union"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/union"},"|"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"union(L,R) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/704654aa.32bb6358.js b/assets/js/704654aa.32bb6358.js new file mode 100644 index 0000000000..5e21f31ed3 --- /dev/null +++ b/assets/js/704654aa.32bb6358.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7629],{62757:(e,t,a)=>{a.d(t,{xA:()=>y,yg:()=>c});var n=a(67308);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),g=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},y=function(e){var t=g(e.components);return n.createElement(o.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),d=g(a),m=r,c=d["".concat(o,".").concat(m)]||d[m]||u[m]||l;return a?n.createElement(c,p(p({ref:t},y),{},{components:a})):n.createElement(c,p({ref:t},y))}));function c(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[d]="string"==typeof e?e:r,p[1]=i;for(var g=2;g{a.r(t),a.d(t,{assets:()=>y,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var n=a(37782),r=a(32345),l=(a(67308),a(62757)),p=["components"],i={hide_table_of_contents:!0},o="Operators",g={unversionedId:"api/operators",id:"version-1.0.25-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.25-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.25-alpha/api/operators",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.25-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.25-alpha/api"}},y={},d=[{value:"Operating Table",id:"operating-table",level:2}],u={toc:d},m="wrapper";function c(e){var t=e.components,a=(0,r.A)(e,p);return(0,l.yg)(m,(0,n.A)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"operators"},"Operators"),(0,l.yg)("h2",{id:"operating-table"},"Operating Table"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"operator"),(0,l.yg)("th",{parentName:"tr",align:null},"string"),(0,l.yg)("th",{parentName:"tr",align:null},"tuple"),(0,l.yg)("th",{parentName:"tr",align:null},"helper"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/arrayof"},"arrayOf")),(0,l.yg)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.yg)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.yg)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/instanceof"},"instanceOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/intersection"},"&")),(0,l.yg)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.yg)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/keyof"},"keyOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.yg)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/morph"},"|",">")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.yg)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/narrow"},"=>")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/union"},"|")),(0,l.yg)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.yg)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/valueof"},"===")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/parseconfigtuple"},":")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/validatebound"},"bound")),(0,l.yg)("td",{parentName:"tr",align:null},'"N{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var o=n.createContext({}),d=function(t){var e=n.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):p(p({},e),t)),a},u=function(t){var e=d(t.components);return n.createElement(o.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(a),c=r,s=m["".concat(o,".").concat(c)]||m[c]||k[c]||l;return a?n.createElement(s,p(p({ref:e},u),{},{components:a})):n.createElement(s,p({ref:e},u))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,p=new Array(l);p[0]=c;var i={};for(var o in e)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i[m]="string"==typeof t?t:r,p[1]=i;for(var d=2;d{a.r(e),a.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var n=a(73268),r=a(68039),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.25-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.25-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.25-alpha/api/operators",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.25-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.25-alpha/api"}},u={},m=[{value:"Operating Table",id:"operating-table",level:2}],k={toc:m},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,p);return(0,l.kt)(c,(0,n.Z)({},k,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"operators"},"Operators"),(0,l.kt)("h2",{id:"operating-table"},"Operating Table"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"operator"),(0,l.kt)("th",{parentName:"tr",align:null},"string"),(0,l.kt)("th",{parentName:"tr",align:null},"tuple"),(0,l.kt)("th",{parentName:"tr",align:null},"helper"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/arrayof"},"arrayOf")),(0,l.kt)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.kt)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.kt)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/instanceof"},"instanceOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/intersection"},"&")),(0,l.kt)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.kt)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/keyof"},"keyOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.kt)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/morph"},"|",">")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.kt)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/narrow"},"=>")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/union"},"|")),(0,l.kt)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.kt)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/valueof"},"===")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/parseconfigtuple"},":")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.25-alpha/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{n.d(t,{Zo:()=>p,kt:()=>y});var r=n(29901);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=r.createContext({}),f=function(e){var t=r.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=f(e.components);return r.createElement(d.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,d=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),c=f(n),u=i,y=c["".concat(d,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var l={};for(var d in t)hasOwnProperty.call(t,d)&&(l[d]=t[d]);l.originalType=e,l[c]="string"==typeof e?e:i,o[1]=l;for(var f=2;f{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>y,frontMatter:()=>l,metadata:()=>f,toc:()=>c});var r=n(73268),i=n(68039),a=(n(29901),n(57522)),o=["components"],l={hide_table_of_contents:!0},d="validateDefinition",f={unversionedId:"api/validatedefinition",id:"version-1.0.27-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/1.0.27-alpha/api/validatedefinition",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.Z)(e,o);return(0,a.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3042],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>y});var r=n(67308);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=r.createContext({}),f=function(e){var t=r.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=f(e.components);return r.createElement(d.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,d=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),c=f(n),u=i,y=c["".concat(d,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var l={};for(var d in t)hasOwnProperty.call(t,d)&&(l[d]=t[d]);l.originalType=e,l[c]="string"==typeof e?e:i,o[1]=l;for(var f=2;f{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>y,frontMatter:()=>l,metadata:()=>f,toc:()=>c});var r=n(37782),i=n(32345),a=(n(67308),n(62757)),o=["components"],l={hide_table_of_contents:!0},d="validateDefinition",f={unversionedId:"api/validatedefinition",id:"version-1.0.27-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/1.0.27-alpha/api/validatedefinition",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.A)(e,o);return(0,a.yg)(u,(0,r.A)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7106c5f4.34450c79.js b/assets/js/7106c5f4.34450c79.js deleted file mode 100644 index caa36497b9..0000000000 --- a/assets/js/7106c5f4.34450c79.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9291],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>b});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),i=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},s=function(e){var t=i(e.components);return n.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(r),f=o,b=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return r?n.createElement(b,l(l({ref:t},s),{},{components:r})):n.createElement(b,l({ref:t},s))}));function b(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var p={};for(var c in t)hasOwnProperty.call(t,c)&&(p[c]=t[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>c,default:()=>b,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.28-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/1.0.28-alpha/api/problems",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function b(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problems"},"Problems"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}b.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7106c5f4.897a210c.js b/assets/js/7106c5f4.897a210c.js new file mode 100644 index 0000000000..70beb54939 --- /dev/null +++ b/assets/js/7106c5f4.897a210c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8623],{62757:(e,r,t)=>{t.d(r,{xA:()=>s,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=n.createContext({}),i=function(e){var r=n.useContext(c),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},s=function(e){var r=i(e.components);return n.createElement(c.Provider,{value:r},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(t),f=o,y=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return t?n.createElement(y,l(l({ref:r},s),{},{components:t})):n.createElement(y,l({ref:r},s))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var p={};for(var c in r)hasOwnProperty.call(r,c)&&(p[c]=r[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.28-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/1.0.28-alpha/api/problems",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},m,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"problems"},"Problems"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/712be200.5d172d5a.js b/assets/js/712be200.5d172d5a.js new file mode 100644 index 0000000000..18165b9c66 --- /dev/null +++ b/assets/js/712be200.5d172d5a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[82],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var y=a.createContext({}),g=function(e){var t=a.useContext(y),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=g(e.components);return a.createElement(y.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,y=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),d=g(n),m=r,s=d["".concat(y,".").concat(m)]||d[m]||u[m]||l;return n?a.createElement(s,o(o({ref:t},p),{},{components:n})):a.createElement(s,o({ref:t},p))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=m;var i={};for(var y in t)hasOwnProperty.call(t,y)&&(i[y]=t[y]);i.originalType=e,i[d]="string"==typeof e?e:r,o[1]=i;for(var g=2;g{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>y,default:()=>s,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),o=["components"],i={hide_table_of_contents:!0},y="tsKeywordsScope",g={unversionedId:"api/tskeywordsscope",id:"version-1.0.28-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.28-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.28-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},p={},d=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],u={toc:d},m="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,o);return(0,l.yg)(m,(0,a.A)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/712be200.e776e634.js b/assets/js/712be200.e776e634.js deleted file mode 100644 index baca4c6e77..0000000000 --- a/assets/js/712be200.e776e634.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1144],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.28-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.28-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.28-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/717abbec.09804fbf.js b/assets/js/717abbec.09804fbf.js new file mode 100644 index 0000000000..30d600ca61 --- /dev/null +++ b/assets/js/717abbec.09804fbf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9035],{62757:(e,t,r)=>{r.d(t,{xA:()=>d,yg:()=>g});var n=r(67308);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},s=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),s=a,g=c["".concat(p,".").concat(s)]||c[s]||y[s]||o;return r?n.createElement(g,l(l({ref:t},d),{},{components:r})):n.createElement(g,l({ref:t},d))}));function g(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=s;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>g,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(37782),a=r(32345),o=(r(67308),r(62757)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.19-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/1.0.19-alpha/api/validatebound",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],y={toc:c},s="wrapper";function g(e){var t=e.components,r=(0,a.A)(e,l);return(0,o.yg)(s,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"validatebound"},"validateBound"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/validatebound"},"bound"))),(0,o.yg)("h2",{id:"tablerow"},"tableRow"),(0,o.yg)("table",null,(0,o.yg)("thead",{parentName:"table"},(0,o.yg)("tr",{parentName:"thead"},(0,o.yg)("th",{parentName:"tr",align:null},"Variable"),(0,o.yg)("th",{parentName:"tr",align:null},"Description"))),(0,o.yg)("tbody",{parentName:"table"},(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"N"),(0,o.yg)("td",{parentName:"tr",align:null},"number literal")),(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"S"),(0,o.yg)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"<"),(0,o.yg)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.yg)("h2",{id:"description"},"description"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{r.d(t,{Zo:()=>d,kt:()=>b});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),m=a,b=c["".concat(p,".").concat(m)]||c[m]||s[m]||o;return r?n.createElement(b,l(l({ref:t},d),{},{components:r})):n.createElement(b,l({ref:t},d))}));function b(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>b,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.19-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/1.0.19-alpha/api/validatebound",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],s={toc:c},m="wrapper";function b(e){var t=e.components,r=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatebound"},"validateBound"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/validatebound"},"bound"))),(0,o.kt)("h2",{id:"tablerow"},"tableRow"),(0,o.kt)("table",null,(0,o.kt)("thead",{parentName:"table"},(0,o.kt)("tr",{parentName:"thead"},(0,o.kt)("th",{parentName:"tr",align:null},"Variable"),(0,o.kt)("th",{parentName:"tr",align:null},"Description"))),(0,o.kt)("tbody",{parentName:"table"},(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"N"),(0,o.kt)("td",{parentName:"tr",align:null},"number literal")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"S"),(0,o.kt)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"<"),(0,o.kt)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.kt)("h2",{id:"description"},"description"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{t.d(r,{xA:()=>u,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(t),f=o,y=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return t?n.createElement(y,l(l({ref:r},u),{},{components:t})):n.createElement(y,l({ref:r},u))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.21-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.21-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/resolvednode"},"node"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/71aeac4f.ec87009b.js b/assets/js/71aeac4f.ec87009b.js deleted file mode 100644 index b590dc76ba..0000000000 --- a/assets/js/71aeac4f.ec87009b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3801],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(r),f=o,v=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return r?n.createElement(v,l(l({ref:t},u),{},{components:r})):n.createElement(v,l({ref:t},u))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>v,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.21-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.21-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function v(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/resolvednode"},"node"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/71bbc623.2da14cd4.js b/assets/js/71bbc623.2da14cd4.js deleted file mode 100644 index ef4c890ba6..0000000000 --- a/assets/js/71bbc623.2da14cd4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3908],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(19982),a=t(60024),o=t(53800),i=t(49361),s=t(29901),p=t(43346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(73268),a=t(68039),o=(t(29901),t(57522)),i=t(9499),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.19-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.19-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.19-alpha/",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.19-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/71bbc623.33cdb496.js b/assets/js/71bbc623.33cdb496.js new file mode 100644 index 0000000000..23a522c61c --- /dev/null +++ b/assets/js/71bbc623.33cdb496.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1105],{62757:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>f});var r=t(67308);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{$:()=>y});var r=t(29093),a=t(57089),o=t(1434),i=t(75768),s=t(67308),p=t(8426);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(37782),a=t(32345),o=(t(67308),t(62757)),i=t(67378),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.19-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.19-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.19-alpha/",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.19-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.A)(e,s);return(0,o.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"getting-started"},"Getting Started"),(0,o.yg)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.yg)("sub",null,(0,o.yg)("sub",null,"\ud83d\udce6",(0,o.yg)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.yg)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.yg)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.yg)("code",null,"npm install arktype"),(0,o.yg)("sub",null,"(or whatever package manager you prefer)"),(0,o.yg)("br",null),(0,o.yg)("p",null,"Our types are tested in ",(0,o.yg)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.yg)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.yg)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.yg)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.yg)("p",null,(0,o.yg)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.yg)("h2",{id:"your-first-type"},"Your first type"),(0,o.yg)(i.$,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/720b32b8.1fd52c8b.js b/assets/js/720b32b8.751a012f.js similarity index 82% rename from assets/js/720b32b8.1fd52c8b.js rename to assets/js/720b32b8.751a012f.js index 883a7f42aa..6af101387a 100644 --- a/assets/js/720b32b8.1fd52c8b.js +++ b/assets/js/720b32b8.751a012f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4204],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.27-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/1.0.27-alpha/api/space",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,p);return(0,o.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"space"},"Space"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1075],{62757:(e,t,r)=>{r.d(t,{xA:()=>s,yg:()=>m});var n=r(67308);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),a=r(32345),o=(r(67308),r(62757)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.27-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/1.0.27-alpha/api/space",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.A)(e,p);return(0,o.yg)(y,(0,n.A)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"space"},"Space"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/730696f5.577ac2c8.js b/assets/js/730696f5.577ac2c8.js deleted file mode 100644 index c9d4f621ab..0000000000 --- a/assets/js/730696f5.577ac2c8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8110],{57522:(e,n,r)=>{r.d(n,{Zo:()=>u,kt:()=>d});var t=r(29901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},u=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},l="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),l=s(r),m=o,d=l["".concat(c,".").concat(m)]||l[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},u),{},{components:r})):t.createElement(d,i({ref:n},u))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[l]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>l});var t=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.29-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/api/arkscope",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},l=[{value:"text",id:"text",level:2}],f={toc:l},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => Out\n parsedInteger: (In: string) => Out\n parsedDate: (In: string) => Out\n semver: string\n json: (In: string) => Out\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/730696f5.5abd8a69.js b/assets/js/730696f5.5abd8a69.js new file mode 100644 index 0000000000..f32455829c --- /dev/null +++ b/assets/js/730696f5.5abd8a69.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2713],{62757:(e,n,r)=>{r.d(n,{xA:()=>u,yg:()=>g});var t=r(67308);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},u=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},l="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),l=s(r),m=o,g=l["".concat(c,".").concat(m)]||l[m]||f[m]||a;return r?t.createElement(g,i(i({ref:n},u),{},{components:r})):t.createElement(g,i({ref:n},u))}));function g(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[l]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>g,frontMatter:()=>p,metadata:()=>s,toc:()=>l});var t=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.29-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/api/arkscope",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},u={},l=[{value:"text",id:"text",level:2}],f={toc:l},m="wrapper";function g(e){var n=e.components,r=(0,o.A)(e,i);return(0,a.yg)(m,(0,t.A)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"arkscope"},"arkScope"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => Out\n parsedInteger: (In: string) => Out\n parsedDate: (In: string) => Out\n semver: string\n json: (In: string) => Out\n integer: number\n },\n {},\n false\n ]\n>\n')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/76ca868d.10b28034.js b/assets/js/74013e48.e5b94bf4.js similarity index 62% rename from assets/js/76ca868d.10b28034.js rename to assets/js/74013e48.e5b94bf4.js index 22a10df893..6425c006b1 100644 --- a/assets/js/76ca868d.10b28034.js +++ b/assets/js/74013e48.e5b94bf4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2814],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>y});var r=t(29901);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(73268),i=t(68039),o=(t(29901),t(57522)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.29-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/api/inferdefinition",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.Z)(e,a);return(0,o.kt)(u,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8335],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>y});var r=t(67308);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(37782),i=t(32345),o=(t(67308),t(62757)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.25-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/1.0.25-alpha/api/inferdefinition",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.A)(e,a);return(0,o.yg)(u,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7544a8d8.8639b118.js b/assets/js/7544a8d8.8639b118.js deleted file mode 100644 index eda7e3d668..0000000000 --- a/assets/js/7544a8d8.8639b118.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4785],{57522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var o=a.createContext({}),d=function(t){var e=a.useContext(o),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},m=function(t){var e=d(t.components);return a.createElement(o.Provider,{value:e},t.children)},u="mdxType",s={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},c=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,m=p(t,["components","mdxType","originalType","parentName"]),u=d(n),c=r,k=u["".concat(o,".").concat(c)]||u[c]||s[c]||l;return n?a.createElement(k,i(i({ref:e},m),{},{components:n})):a.createElement(k,i({ref:e},m))}));function k(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=c;var p={};for(var o in e)hasOwnProperty.call(e,o)&&(p[o]=e[o]);p.originalType=t,p[u]="string"==typeof t?t:r,i[1]=p;for(var d=2;d{n.r(e),n.d(e,{assets:()=>m,contentTitle:()=>o,default:()=>k,frontMatter:()=>p,metadata:()=>d,toc:()=>u});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.19-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.19-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.19-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},m={},u=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],s={toc:u},c="wrapper";function k(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(c,(0,a.Z)({},s,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"validationscope"},"validationScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7544a8d8.e00a6404.js b/assets/js/7544a8d8.e00a6404.js new file mode 100644 index 0000000000..e56180d63b --- /dev/null +++ b/assets/js/7544a8d8.e00a6404.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7172],{62757:(e,t,n)=>{n.d(t,{xA:()=>d,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=a.createContext({}),g=function(e){var t=a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=g(e.components);return a.createElement(o.Provider,{value:t},e.children)},y="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,d=p(e,["components","mdxType","originalType","parentName"]),y=g(n),u=r,s=y["".concat(o,".").concat(u)]||y[u]||m[u]||l;return n?a.createElement(s,i(i({ref:t},d),{},{components:n})):a.createElement(s,i({ref:t},d))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=u;var p={};for(var o in t)hasOwnProperty.call(t,o)&&(p[o]=t[o]);p.originalType=e,p[y]="string"==typeof e?e:r,i[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>s,frontMatter:()=>p,metadata:()=>g,toc:()=>y});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",g={unversionedId:"api/validationscope",id:"version-1.0.19-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.19-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.19-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},d={},y=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],m={toc:y},u="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,i);return(0,l.yg)(u,(0,a.A)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"validationscope"},"validationScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/74013e48.917f98c3.js b/assets/js/76ca868d.e1aa8107.js similarity index 62% rename from assets/js/74013e48.917f98c3.js rename to assets/js/76ca868d.e1aa8107.js index aac1a2d8bf..371becaf38 100644 --- a/assets/js/74013e48.917f98c3.js +++ b/assets/js/76ca868d.e1aa8107.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4278],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>y});var r=t(29901);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(73268),i=t(68039),o=(t(29901),t(57522)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.25-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.25-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/1.0.25-alpha/api/inferdefinition",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.Z)(e,a);return(0,o.kt)(u,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1274],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>y});var r=t(67308);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(37782),i=t(32345),o=(t(67308),t(62757)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.29-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/api/inferdefinition",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.A)(e,a);return(0,o.yg)(u,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/77b85fcc.5e732928.js b/assets/js/77b85fcc.5e732928.js deleted file mode 100644 index 5480621b38..0000000000 --- a/assets/js/77b85fcc.5e732928.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2064],{57522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(29901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(i,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>f});var n=t(73268),a=t(68039),l=(t(29901),t(57522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.24-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.24-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/77b85fcc.a8b60891.js b/assets/js/77b85fcc.a8b60891.js new file mode 100644 index 0000000000..dc98517af2 --- /dev/null +++ b/assets/js/77b85fcc.a8b60891.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1348],{62757:(e,r,t)=>{t.d(r,{xA:()=>y,yg:()=>g});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},y=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},c="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=u(t),s=a,g=c["".concat(i,".").concat(s)]||c[s]||f[s]||l;return t?n.createElement(g,o(o({ref:r},y),{},{components:t})):n.createElement(g,o({ref:r},y))}));function g(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>y,contentTitle:()=>i,default:()=>g,frontMatter:()=>p,metadata:()=>u,toc:()=>c});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.24-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.24-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:c},s="wrapper";function g(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"arrayof"},"arrayOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/arrayof"},"arrayOf"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"T[]" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/77ef4de7.6d4b2832.js b/assets/js/77ef4de7.6d4b2832.js deleted file mode 100644 index 7e253a7143..0000000000 --- a/assets/js/77ef4de7.6d4b2832.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5804],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{g:()=>y});var r=t(19982),o=t(60024),a=t(53800),i=t(49361),s=t(29901),p=t(43346);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(73268),o=t(68039),a=(t(29901),t(57522)),i=t(54665),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.26-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.26-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/1.0.26-alpha/scopes",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/1.0.26-alpha/"},next:{title:"Keywords",permalink:"/docs/1.0.26-alpha/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.Z)(e,s);return(0,a.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"scopes"},"Scopes"),(0,a.kt)(i.g,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/77ef4de7.c6d5da9d.js b/assets/js/77ef4de7.c6d5da9d.js new file mode 100644 index 0000000000..265714f2ae --- /dev/null +++ b/assets/js/77ef4de7.c6d5da9d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9332],{62757:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>f});var r=t(67308);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{$:()=>y});var r=t(29093),o=t(57089),a=t(1434),i=t(75768),s=t(67308),p=t(8426);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(37782),o=t(32345),a=(t(67308),t(62757)),i=t(77760),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.26-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.26-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/1.0.26-alpha/scopes",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/1.0.26-alpha/"},next:{title:"Keywords",permalink:"/docs/1.0.26-alpha/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.A)(e,s);return(0,a.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"scopes"},"Scopes"),(0,a.yg)(i.$,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/78815324.47a8444e.js b/assets/js/78815324.47a8444e.js new file mode 100644 index 0000000000..bc4372e76d --- /dev/null +++ b/assets/js/78815324.47a8444e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8509],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>y});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=n.createContext({}),c=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(p.Provider,{value:r},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(t),f=o,y=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return t?n.createElement(y,l(l({ref:r},u),{},{components:t})):n.createElement(y,l({ref:r},u))}));function y(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=f;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.23-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.23-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function y(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(f,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/resolvednode"},"node"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/78815324.7e2366b1.js b/assets/js/78815324.7e2366b1.js deleted file mode 100644 index e59ba5bb25..0000000000 --- a/assets/js/78815324.7e2366b1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7920],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(r),f=o,v=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return r?n.createElement(v,l(l({ref:t},u),{},{components:r})):n.createElement(v,l({ref:t},u))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>v,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.23-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.23-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.23-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function v(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.23-alpha/api/resolvednode"},"node"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7955d848.059ef9c3.js b/assets/js/7955d848.059ef9c3.js deleted file mode 100644 index 500c438ba4..0000000000 --- a/assets/js/7955d848.059ef9c3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6397],{57522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(29901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,a(a({ref:t},c),{},{components:n})):r.createElement(d,a({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,a=new Array(l);a[0]=m;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i[s]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(73268),o=n(68039),l=(n(29901),n(57522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.28-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.28-alpha/api/union",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.28-alpha/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7955d848.665dd975.js b/assets/js/7955d848.665dd975.js new file mode 100644 index 0000000000..7992b00967 --- /dev/null +++ b/assets/js/7955d848.665dd975.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2789],{62757:(e,n,r)=>{r.d(n,{xA:()=>c,yg:()=>f});var t=r(67308);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function a(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=t.createContext({}),p=function(e){var n=t.useContext(u),r=n;return e&&(r="function"==typeof e?e(n):a(a({},n),e)),r},c=function(e){var n=p(e.components);return t.createElement(u.Provider,{value:n},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},g=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),y=p(r),g=o,f=y["".concat(u,".").concat(g)]||y[g]||s[g]||l;return r?t.createElement(f,a(a({ref:n},c),{},{components:r})):t.createElement(f,a({ref:n},c))}));function f(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var l=r.length,a=new Array(l);a[0]=g;var i={};for(var u in n)hasOwnProperty.call(n,u)&&(i[u]=n[u]);i.originalType=e,i[y]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>f,frontMatter:()=>i,metadata:()=>p,toc:()=>y});var t=r(37782),o=r(32345),l=(r(67308),r(62757)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.28-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.28-alpha/api/union",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},g="wrapper";function f(e){var n=e.components,r=(0,o.A)(e,a);return(0,l.yg)(g,(0,t.A)({},s,r,{components:n,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"union"},"union"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/1.0.28-alpha/api/union"},"|"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"union(L,R) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/79bbd73f.57ee2cc5.js b/assets/js/79bbd73f.57ee2cc5.js deleted file mode 100644 index 11ae33f8d2..0000000000 --- a/assets/js/79bbd73f.57ee2cc5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1845],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>k});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),c=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(i.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,k=f["".concat(i,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(k,l(l({ref:t},u),{},{components:r})):n.createElement(k,l({ref:t},u))}));function k(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=y;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[f]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>f});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.19-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.19-alpha/api/keyof",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function k(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"keyof"},"keyOf"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/keyof"},"keyOf"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"keyOf(T) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.kt)("br",null))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/79bbd73f.d14b7cf8.js b/assets/js/79bbd73f.d14b7cf8.js new file mode 100644 index 0000000000..aedae32a9f --- /dev/null +++ b/assets/js/79bbd73f.d14b7cf8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5227],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),s=o,g=y["".concat(i,".").concat(s)]||y[s]||f[s]||a;return t?n.createElement(g,l(l({ref:r},u),{},{components:t})):n.createElement(g,l({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=s;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>g,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.19-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.19-alpha/api/keyof",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:y},s="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"keyof"},"keyOf"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/keyof"},"keyOf"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"keyOf(T) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/79d70776.045f0ba5.js b/assets/js/79d70776.045f0ba5.js new file mode 100644 index 0000000000..ba807813e9 --- /dev/null +++ b/assets/js/79d70776.045f0ba5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2820],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>s});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var y=a.createContext({}),g=function(e){var t=a.useContext(y),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=g(e.components);return a.createElement(y.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,y=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),d=g(n),m=r,s=d["".concat(y,".").concat(m)]||d[m]||u[m]||l;return n?a.createElement(s,o(o({ref:t},p),{},{components:n})):a.createElement(s,o({ref:t},p))}));function s(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=m;var i={};for(var y in t)hasOwnProperty.call(t,y)&&(i[y]=t[y]);i.originalType=e,i[d]="string"==typeof e?e:r,o[1]=i;for(var g=2;g{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>y,default:()=>s,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),o=["components"],i={hide_table_of_contents:!0},y="tsKeywordsScope",g={unversionedId:"api/tskeywordsscope",id:"version-1.0.20-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.20-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.20-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},p={},d=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],u={toc:d},m="wrapper";function s(e){var t=e.components,n=(0,r.A)(e,o);return(0,l.yg)(m,(0,a.A)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"any"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," any")),(0,l.yg)("td",{parentName:"tr",align:null},"any")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"bigint"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," bigint")),(0,l.yg)("td",{parentName:"tr",align:null},"a bigint")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"boolean"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," boolean")),(0,l.yg)("td",{parentName:"tr",align:null},"a boolean")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"false"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," false")),(0,l.yg)("td",{parentName:"tr",align:null},"false")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"never"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," never")),(0,l.yg)("td",{parentName:"tr",align:null},"never")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"null"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," null")),(0,l.yg)("td",{parentName:"tr",align:null},"null")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"number"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"a number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"object"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," object")),(0,l.yg)("td",{parentName:"tr",align:null},"an object")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"string"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"symbol"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," symbol")),(0,l.yg)("td",{parentName:"tr",align:null},"a symbol")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"true"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," true")),(0,l.yg)("td",{parentName:"tr",align:null},"true")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"unknown"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," unknown")),(0,l.yg)("td",{parentName:"tr",align:null},"unknown")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"void"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," void")),(0,l.yg)("td",{parentName:"tr",align:null},"void")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"undefined"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," undefined")),(0,l.yg)("td",{parentName:"tr",align:null},"undefined")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/79d70776.05f47e01.js b/assets/js/79d70776.05f47e01.js deleted file mode 100644 index a116f0b903..0000000000 --- a/assets/js/79d70776.05f47e01.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7297],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.20-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.20-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.20-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7b1099f0.8f8bb557.js b/assets/js/7b1099f0.edf616d0.js similarity index 82% rename from assets/js/7b1099f0.8f8bb557.js rename to assets/js/7b1099f0.edf616d0.js index 84d561a7de..ff7582a0f9 100644 --- a/assets/js/7b1099f0.8f8bb557.js +++ b/assets/js/7b1099f0.edf616d0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6155],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.21-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/1.0.21-alpha/api/space",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,p);return(0,o.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"space"},"Space"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9355],{62757:(e,t,r)=>{r.d(t,{xA:()=>s,yg:()=>m});var n=r(67308);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),a=r(32345),o=(r(67308),r(62757)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.21-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/1.0.21-alpha/api/space",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.A)(e,p);return(0,o.yg)(y,(0,n.A)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"space"},"Space"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7b5196a1.ba5f2891.js b/assets/js/7b5196a1.1ebfd452.js similarity index 62% rename from assets/js/7b5196a1.ba5f2891.js rename to assets/js/7b5196a1.1ebfd452.js index 4fdf07dedd..7a7fc44d4d 100644 --- a/assets/js/7b5196a1.ba5f2891.js +++ b/assets/js/7b5196a1.1ebfd452.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3126],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.26-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.26-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.26-alpha/api/type",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4225],{62757:(e,t,r)=>{r.d(t,{xA:()=>u,yg:()=>d});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),y=c(r),f=o,d=y["".concat(l,".").concat(f)]||y[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[y]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>y});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.26-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.26-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.26-alpha/api/type",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],s={toc:y},f="wrapper";function d(e){var t=e.components,r=(0,o.A)(e,p);return(0,a.yg)(f,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"type"},"type"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.yg)("hr",null),(0,a.yg)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.yg)("h1",{id:"type-1"},"Type"),(0,a.yg)("h2",{id:"text-1"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7b812af0.1c1ca921.js b/assets/js/7b812af0.1c1ca921.js new file mode 100644 index 0000000000..560f7aec1c --- /dev/null +++ b/assets/js/7b812af0.1c1ca921.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3348],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>v});var n=t(67308);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),i=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=i(e.components);return n.createElement(p.Provider,{value:r},e.children)},f="mdxType",y={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,c=u(e,["components","mdxType","originalType","parentName"]),f=i(t),s=a,v=f["".concat(p,".").concat(s)]||f[s]||y[s]||l;return t?n.createElement(v,o(o({ref:r},c),{},{components:t})):n.createElement(v,o({ref:r},c))}));function v(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=s;var u={};for(var p in r)hasOwnProperty.call(r,p)&&(u[p]=r[p]);u.originalType=e,u[f]="string"==typeof e?e:a,o[1]=u;for(var i=2;i{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>p,default:()=>v,frontMatter:()=>u,metadata:()=>i,toc:()=>f});var n=t(37782),a=t(32345),l=(t(67308),t(62757)),o=["components"],u={hide_table_of_contents:!0},p="valueOf",i={unversionedId:"api/valueof",id:"api/valueof",title:"valueOf",description:"operator",source:"@site/docs/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/next/api/valueof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],y={toc:f},s="wrapper";function v(e){var r=e.components,t=(0,a.A)(e,o);return(0,l.yg)(s,(0,n.A)({},y,t,{components:r,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"valueof"},"valueOf"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/next/api/valueof"},"==="))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'["===", T]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"valueOf(T) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.yg)("br",null))))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7b812af0.85180064.js b/assets/js/7b812af0.85180064.js deleted file mode 100644 index 5c0f8dcb15..0000000000 --- a/assets/js/7b812af0.85180064.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2708],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),i=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},c=function(e){var t=i(e.components);return n.createElement(p.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,c=u(e,["components","mdxType","originalType","parentName"]),f=i(r),v=a,m=f["".concat(p,".").concat(v)]||f[v]||s[v]||l;return r?n.createElement(m,o(o({ref:t},c),{},{components:r})):n.createElement(m,o({ref:t},c))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,o=new Array(l);o[0]=v;var u={};for(var p in t)hasOwnProperty.call(t,p)&&(u[p]=t[p]);u.originalType=e,u[f]="string"==typeof e?e:a,o[1]=u;for(var i=2;i{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>p,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>f});var n=r(73268),a=r(68039),l=(r(29901),r(57522)),o=["components"],u={hide_table_of_contents:!0},p="valueOf",i={unversionedId:"api/valueof",id:"api/valueof",title:"valueOf",description:"operator",source:"@site/docs/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/next/api/valueof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},v="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,o);return(0,l.kt)(v,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"valueof"},"valueOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/next/api/valueof"},"==="))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'["===", T]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"valueOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7bbcf7aa.a64da033.js b/assets/js/7bbcf7aa.a64da033.js new file mode 100644 index 0000000000..492fa3943d --- /dev/null +++ b/assets/js/7bbcf7aa.a64da033.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8258],{62757:(e,t,n)=>{n.d(t,{xA:()=>d,yg:()=>u});var a=n(67308);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=a.createContext({}),g=function(e){var t=a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=g(e.components);return a.createElement(o.Provider,{value:t},e.children)},y="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},s=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,d=p(e,["components","mdxType","originalType","parentName"]),y=g(n),s=r,u=y["".concat(o,".").concat(s)]||y[s]||m[s]||l;return n?a.createElement(u,i(i({ref:t},d),{},{components:n})):a.createElement(u,i({ref:t},d))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=s;var p={};for(var o in t)hasOwnProperty.call(t,o)&&(p[o]=t[o]);p.originalType=e,p[y]="string"==typeof e?e:r,i[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>u,frontMatter:()=>p,metadata:()=>g,toc:()=>y});var a=n(37782),r=n(32345),l=(n(67308),n(62757)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",g={unversionedId:"api/validationscope",id:"version-1.0.29-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.29-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/api/validationscope",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},d={},y=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],m={toc:y},s="wrapper";function u(e){var t=e.components,n=(0,r.A)(e,i);return(0,l.yg)(s,(0,a.A)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"validationscope"},"validationScope"),(0,l.yg)("h2",{id:"keywords"},"keywords"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alpha"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"lowercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uppercase"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"creditCard"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"email"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid email")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"uuid"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a valid date")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"semver"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," string")),(0,l.yg)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"json"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.yg)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"integer"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," number")),(0,l.yg)("td",{parentName:"tr",align:null},"an integer")))))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7bbcf7aa.c544a56f.js b/assets/js/7bbcf7aa.c544a56f.js deleted file mode 100644 index de4c829cc0..0000000000 --- a/assets/js/7bbcf7aa.c544a56f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[717],{57522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(29901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var o=a.createContext({}),d=function(t){var e=a.useContext(o),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},m=function(t){var e=d(t.components);return a.createElement(o.Provider,{value:e},t.children)},s="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},c=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,m=p(t,["components","mdxType","originalType","parentName"]),s=d(n),c=r,k=s["".concat(o,".").concat(c)]||s[c]||u[c]||l;return n?a.createElement(k,i(i({ref:e},m),{},{components:n})):a.createElement(k,i({ref:e},m))}));function k(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=c;var p={};for(var o in e)hasOwnProperty.call(e,o)&&(p[o]=e[o]);p.originalType=t,p[s]="string"==typeof t?t:r,i[1]=p;for(var d=2;d{n.r(e),n.d(e,{assets:()=>m,contentTitle:()=>o,default:()=>k,frontMatter:()=>p,metadata:()=>d,toc:()=>s});var a=n(73268),r=n(68039),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.29-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.29-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/api/validationscope",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},m={},s=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],u={toc:s},c="wrapper";function k(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(c,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"validationscope"},"validationScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},' (In: string) => import("../../parse/ast/morph.js").Out')),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7caf366c.c8346509.js b/assets/js/7caf366c.c8346509.js new file mode 100644 index 0000000000..d2f7fa8a43 --- /dev/null +++ b/assets/js/7caf366c.c8346509.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6622],{62757:(e,r,t)=>{t.d(r,{xA:()=>c,yg:()=>f});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),y=u(t),m=o,f=y["".concat(i,".").concat(m)]||y[m]||s[m]||a;return t?n.createElement(f,p(p({ref:r},c),{},{components:t})):n.createElement(f,p({ref:r},c))}));function f(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=m;var l={};for(var i in r)hasOwnProperty.call(r,i)&&(l[i]=r[i]);l.originalType=e,l[y]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>f,frontMatter:()=>l,metadata:()=>u,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.24-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.24-alpha/api/morph",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},m="wrapper";function f(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(m,(0,n.A)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"morph"},"morph"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/morph"},"|",">"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7caf366c.d80bfd91.js b/assets/js/7caf366c.d80bfd91.js deleted file mode 100644 index 2944bb60e0..0000000000 --- a/assets/js/7caf366c.d80bfd91.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9594],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.24-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.24-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.24-alpha/api/morph",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.24-alpha/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7cdde229.89e5eca6.js b/assets/js/7cdde229.89e5eca6.js new file mode 100644 index 0000000000..fd9fc459c2 --- /dev/null +++ b/assets/js/7cdde229.89e5eca6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7283],{62757:(e,t,r)=>{r.d(t,{xA:()=>d,yg:()=>g});var n=r(67308);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},s=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),s=a,g=c["".concat(p,".").concat(s)]||c[s]||y[s]||o;return r?n.createElement(g,l(l({ref:t},d),{},{components:r})):n.createElement(g,l({ref:t},d))}));function g(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=s;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>g,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(37782),a=r(32345),o=(r(67308),r(62757)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.27-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/1.0.27-alpha/api/validatebound",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],y={toc:c},s="wrapper";function g(e){var t=e.components,r=(0,a.A)(e,l);return(0,o.yg)(s,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"validatebound"},"validateBound"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/validatebound"},"bound"))),(0,o.yg)("h2",{id:"tablerow"},"tableRow"),(0,o.yg)("table",null,(0,o.yg)("thead",{parentName:"table"},(0,o.yg)("tr",{parentName:"thead"},(0,o.yg)("th",{parentName:"tr",align:null},"Variable"),(0,o.yg)("th",{parentName:"tr",align:null},"Description"))),(0,o.yg)("tbody",{parentName:"table"},(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"N"),(0,o.yg)("td",{parentName:"tr",align:null},"number literal")),(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"S"),(0,o.yg)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"<"),(0,o.yg)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.yg)("h2",{id:"description"},"description"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{r.d(t,{Zo:()=>d,kt:()=>b});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),m=a,b=c["".concat(p,".").concat(m)]||c[m]||s[m]||o;return r?n.createElement(b,l(l({ref:t},d),{},{components:r})):n.createElement(b,l({ref:t},d))}));function b(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>b,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.27-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/1.0.27-alpha/api/validatebound",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],s={toc:c},m="wrapper";function b(e){var t=e.components,r=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatebound"},"validateBound"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/validatebound"},"bound"))),(0,o.kt)("h2",{id:"tablerow"},"tableRow"),(0,o.kt)("table",null,(0,o.kt)("thead",{parentName:"table"},(0,o.kt)("tr",{parentName:"thead"},(0,o.kt)("th",{parentName:"tr",align:null},"Variable"),(0,o.kt)("th",{parentName:"tr",align:null},"Description"))),(0,o.kt)("tbody",{parentName:"table"},(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"N"),(0,o.kt)("td",{parentName:"tr",align:null},"number literal")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"S"),(0,o.kt)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"<"),(0,o.kt)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.kt)("h2",{id:"description"},"description"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{r.d(t,{xA:()=>d,yg:()=>g});var n=r(67308);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},s=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),s=a,g=c["".concat(p,".").concat(s)]||c[s]||y[s]||o;return r?n.createElement(g,l(l({ref:t},d),{},{components:r})):n.createElement(g,l({ref:t},d))}));function g(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=s;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>g,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(37782),a=r(32345),o=(r(67308),r(62757)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.25-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/1.0.25-alpha/api/validatebound",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],y={toc:c},s="wrapper";function g(e){var t=e.components,r=(0,a.A)(e,l);return(0,o.yg)(s,(0,n.A)({},y,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"validatebound"},"validateBound"),(0,o.yg)("h2",{id:"operator"},"operator"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/validatebound"},"bound"))),(0,o.yg)("h2",{id:"tablerow"},"tableRow"),(0,o.yg)("table",null,(0,o.yg)("thead",{parentName:"table"},(0,o.yg)("tr",{parentName:"thead"},(0,o.yg)("th",{parentName:"tr",align:null},"Variable"),(0,o.yg)("th",{parentName:"tr",align:null},"Description"))),(0,o.yg)("tbody",{parentName:"table"},(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"N"),(0,o.yg)("td",{parentName:"tr",align:null},"number literal")),(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"S"),(0,o.yg)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.yg)("tr",{parentName:"tbody"},(0,o.yg)("td",{parentName:"tr",align:null},"<"),(0,o.yg)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.yg)("h2",{id:"description"},"description"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{r.d(t,{Zo:()=>d,kt:()=>b});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),m=a,b=c["".concat(p,".").concat(m)]||c[m]||s[m]||o;return r?n.createElement(b,l(l({ref:t},d),{},{components:r})):n.createElement(b,l({ref:t},d))}));function b(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>b,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.25-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.25-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/1.0.25-alpha/api/validatebound",draft:!1,tags:[],version:"1.0.25-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],s={toc:c},m="wrapper";function b(e){var t=e.components,r=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatebound"},"validateBound"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.25-alpha/api/validatebound"},"bound"))),(0,o.kt)("h2",{id:"tablerow"},"tableRow"),(0,o.kt)("table",null,(0,o.kt)("thead",{parentName:"table"},(0,o.kt)("tr",{parentName:"thead"},(0,o.kt)("th",{parentName:"tr",align:null},"Variable"),(0,o.kt)("th",{parentName:"tr",align:null},"Description"))),(0,o.kt)("tbody",{parentName:"table"},(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"N"),(0,o.kt)("td",{parentName:"tr",align:null},"number literal")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"S"),(0,o.kt)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"<"),(0,o.kt)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.kt)("h2",{id:"description"},"description"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},y="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),y=c(t),s=o,g=y["".concat(i,".").concat(s)]||y[s]||f[s]||a;return t?n.createElement(g,l(l({ref:r},u),{},{components:t})):n.createElement(g,l({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=s;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[y]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>g,frontMatter:()=>p,metadata:()=>c,toc:()=>y});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.27-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.27-alpha/api/keyof",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},y=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:y},s="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,l);return(0,a.yg)(s,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"keyof"},"keyOf"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/keyof"},"keyOf"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.yg)("br",null))),(0,a.yg)("h2",{id:"helper"},"helper"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"keyOf(T) ",(0,a.yg)("br",null)),(0,a.yg)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.yg)("br",null))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7f741c26.9b875b97.js b/assets/js/7f741c26.9b875b97.js deleted file mode 100644 index 8eea60e627..0000000000 --- a/assets/js/7f741c26.9b875b97.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[712],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>k});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),c=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(i.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,k=f["".concat(i,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(k,l(l({ref:t},u),{},{components:r})):n.createElement(k,l({ref:t},u))}));function k(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=y;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[f]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>f});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.27-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.27-alpha/api/keyof",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function k(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"keyof"},"keyOf"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/keyof"},"keyOf"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"keyOf(T) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.kt)("br",null))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/80a2bf09.7d48b525.js b/assets/js/80a2bf09.25d5ac83.js similarity index 82% rename from assets/js/80a2bf09.7d48b525.js rename to assets/js/80a2bf09.25d5ac83.js index 1dfb174948..f386b465c9 100644 --- a/assets/js/80a2bf09.7d48b525.js +++ b/assets/js/80a2bf09.25d5ac83.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5266],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>m});var n=r(29901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),a=r(68039),o=(r(29901),r(57522)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.19-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/1.0.19-alpha/api/space",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,p);return(0,o.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"space"},"Space"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9183],{62757:(e,t,r)=>{r.d(t,{xA:()=>s,yg:()=>m});var n=r(67308);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),a=r(32345),o=(r(67308),r(62757)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.19-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/1.0.19-alpha/api/space",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.A)(e,p);return(0,o.yg)(y,(0,n.A)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"space"},"Space"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/8122d123.371ab2ef.js b/assets/js/8122d123.371ab2ef.js deleted file mode 100644 index 69fa32fe73..0000000000 --- a/assets/js/8122d123.371ab2ef.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6746],{57522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(29901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=a(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,i(i({ref:t},c),{},{components:n})):r.createElement(d,i({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,i=new Array(l);i[0]=m;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a[s]="string"==typeof e?e:o,i[1]=a;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>a,metadata:()=>p,toc:()=>s});var r=n(73268),o=n(68039),l=(n(29901),n(57522)),i=["components"],a={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"api/union",title:"union",description:"operator",source:"@site/docs/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/next/api/union",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,i);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/next/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/8122d123.79755752.js b/assets/js/8122d123.79755752.js new file mode 100644 index 0000000000..d482ff6d16 --- /dev/null +++ b/assets/js/8122d123.79755752.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5238],{62757:(e,n,r)=>{r.d(n,{xA:()=>c,yg:()=>f});var t=r(67308);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=t.createContext({}),p=function(e){var n=t.useContext(u),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},c=function(e){var n=p(e.components);return t.createElement(u.Provider,{value:n},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},g=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=a(e,["components","mdxType","originalType","parentName"]),y=p(r),g=o,f=y["".concat(u,".").concat(g)]||y[g]||s[g]||l;return r?t.createElement(f,i(i({ref:n},c),{},{components:r})):t.createElement(f,i({ref:n},c))}));function f(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var l=r.length,i=new Array(l);i[0]=g;var a={};for(var u in n)hasOwnProperty.call(n,u)&&(a[u]=n[u]);a.originalType=e,a[y]="string"==typeof e?e:o,i[1]=a;for(var p=2;p{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>f,frontMatter:()=>a,metadata:()=>p,toc:()=>y});var t=r(37782),o=r(32345),l=(r(67308),r(62757)),i=["components"],a={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"api/union",title:"union",description:"operator",source:"@site/docs/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/next/api/union",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},y=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:y},g="wrapper";function f(e){var n=e.components,r=(0,o.A)(e,i);return(0,l.yg)(g,(0,t.A)({},s,r,{components:n,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"union"},"union"),(0,l.yg)("h2",{id:"operator"},"operator"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},(0,l.yg)("a",{parentName:"li",href:"/docs/next/api/union"},"|"))),(0,l.yg)("h2",{id:"string"},"string"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"tuple"},"tuple"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.yg)("br",null))),(0,l.yg)("h2",{id:"helper"},"helper"),(0,l.yg)("ul",null,(0,l.yg)("li",{parentName:"ul"},"union(L,R) ",(0,l.yg)("br",null)),(0,l.yg)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.yg)("br",null))))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/816edea5.fc8e7cfe.js b/assets/js/816edea5.73641121.js similarity index 84% rename from assets/js/816edea5.fc8e7cfe.js rename to assets/js/816edea5.73641121.js index 47d5bb2c5f..f9fd3a5fe3 100644 --- a/assets/js/816edea5.fc8e7cfe.js +++ b/assets/js/816edea5.73641121.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6871],{57522:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>y});var r=n(29901);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=r.createContext({}),f=function(e){var t=r.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=f(e.components);return r.createElement(d.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,d=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),c=f(n),u=i,y=c["".concat(d,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var l={};for(var d in t)hasOwnProperty.call(t,d)&&(l[d]=t[d]);l.originalType=e,l[c]="string"==typeof e?e:i,o[1]=l;for(var f=2;f{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>y,frontMatter:()=>l,metadata:()=>f,toc:()=>c});var r=n(73268),i=n(68039),a=(n(29901),n(57522)),o=["components"],l={hide_table_of_contents:!0},d="validateDefinition",f={unversionedId:"api/validatedefinition",id:"version-1.0.24-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/1.0.24-alpha/api/validatedefinition",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.Z)(e,o);return(0,a.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7646],{62757:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>y});var r=n(67308);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=r.createContext({}),f=function(e){var t=r.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=f(e.components);return r.createElement(d.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,d=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),c=f(n),u=i,y=c["".concat(d,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var l={};for(var d in t)hasOwnProperty.call(t,d)&&(l[d]=t[d]);l.originalType=e,l[c]="string"==typeof e?e:i,o[1]=l;for(var f=2;f{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>y,frontMatter:()=>l,metadata:()=>f,toc:()=>c});var r=n(37782),i=n(32345),a=(n(67308),n(62757)),o=["components"],l={hide_table_of_contents:!0},d="validateDefinition",f={unversionedId:"api/validatedefinition",id:"version-1.0.24-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.24-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/1.0.24-alpha/api/validatedefinition",draft:!1,tags:[],version:"1.0.24-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.A)(e,o);return(0,a.yg)(u,(0,r.A)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/819b7bff.30e99dfd.js b/assets/js/819b7bff.30e99dfd.js new file mode 100644 index 0000000000..d2c05d5fef --- /dev/null +++ b/assets/js/819b7bff.30e99dfd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2540],{62757:(e,r,t)=>{t.d(r,{xA:()=>u,yg:()=>g});var n=t(67308);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=n.createContext({}),c=function(e){var r=n.useContext(l),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(l.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(t),y=o,g=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return t?n.createElement(g,p(p({ref:r},u),{},{components:t})):n.createElement(g,p({ref:r},u))}));function g(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,p=new Array(a);p[0]=y;var i={};for(var l in r)hasOwnProperty.call(r,l)&&(i[l]=r[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>l,default:()=>g,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=t(37782),o=t(32345),a=(t(67308),t(62757)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.21-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.21-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function g(e){var r=e.components,t=(0,o.A)(e,p);return(0,a.yg)(y,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.yg)("h2",{id:"operator"},"operator"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/parseconfigtuple"},":"))),(0,a.yg)("h2",{id:"tuple"},"tuple"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},'["type", ":", config]')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/819b7bff.f9768119.js b/assets/js/819b7bff.f9768119.js deleted file mode 100644 index d57907f0f3..0000000000 --- a/assets/js/819b7bff.f9768119.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4616],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.21-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.21-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/82588e75.33a3b18b.js b/assets/js/82588e75.33a3b18b.js new file mode 100644 index 0000000000..e479c4ae57 --- /dev/null +++ b/assets/js/82588e75.33a3b18b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8111],{62757:(e,t,n)=>{n.d(t,{xA:()=>y,yg:()=>m});var r=n(67308);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),g=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},y=function(e){var t=g(e.components);return r.createElement(i.Provider,{value:t},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,y=p(e,["components","mdxType","originalType","parentName"]),c=g(n),u=a,m=c["".concat(i,".").concat(u)]||c[u]||d[u]||l;return n?r.createElement(m,o(o({ref:t},y),{},{components:n})):r.createElement(m,o({ref:t},y))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,o=new Array(l);o[0]=u;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var g=2;g{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>g,toc:()=>c});var r=n(37782),a=n(32345),l=(n(67308),n(62757)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",g={unversionedId:"api/jsobjectsscope",id:"version-1.0.29-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},y={},c=[{value:"text",id:"text",level:2}],d={toc:c},u="wrapper";function m(e){var t=e.components,n=(0,a.A)(e,o);return(0,l.yg)(u,(0,r.A)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.yg)("h2",{id:"text"},"text"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"Name"),(0,l.yg)("th",{parentName:"tr",align:null},"Type"),(0,l.yg)("th",{parentName:"tr",align:null},"Description"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Function"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Date"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Date")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Error"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Error")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Map"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Map")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"RegExp"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," RegExp")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Set"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Set")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},"Promise"),(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("inlineCode",{parentName:"td"}," Promise")),(0,l.yg)("td",{parentName:"tr",align:null})))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/82588e75.87d38f2c.js b/assets/js/82588e75.87d38f2c.js deleted file mode 100644 index 19288c53d8..0000000000 --- a/assets/js/82588e75.87d38f2c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7288],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(73268),a=n(68039),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.29-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.29-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.29-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/82b3c1af.28b08655.js b/assets/js/82b3c1af.28b08655.js deleted file mode 100644 index 48d9644ef5..0000000000 --- a/assets/js/82b3c1af.28b08655.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8727],{57522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(29901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.23-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.23-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.23-alpha/api/infer",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"infer"},"Infer"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/82b3c1af.bd1801bb.js b/assets/js/82b3c1af.bd1801bb.js new file mode 100644 index 0000000000..601a5b3c64 --- /dev/null +++ b/assets/js/82b3c1af.bd1801bb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8305],{62757:(e,t,r)=>{r.d(t,{xA:()=>f,yg:()=>m});var n=r(67308);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(37782),o=r(32345),a=(r(67308),r(62757)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.23-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.23-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.23-alpha/api/infer",draft:!1,tags:[],version:"1.0.23-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.A)(e,i);return(0,a.yg)(y,(0,n.A)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h1",{id:"infer"},"Infer"),(0,a.yg)("h2",{id:"text"},"text"),(0,a.yg)("pre",null,(0,a.yg)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/83647aeb.62a94464.js b/assets/js/83647aeb.62a94464.js new file mode 100644 index 0000000000..c8b251c395 --- /dev/null +++ b/assets/js/83647aeb.62a94464.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8843],{62757:(e,t,a)=>{a.d(t,{xA:()=>y,yg:()=>c});var n=a(67308);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),g=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},y=function(e){var t=g(e.components);return n.createElement(o.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,y=i(e,["components","mdxType","originalType","parentName"]),d=g(a),m=r,c=d["".concat(o,".").concat(m)]||d[m]||u[m]||l;return a?n.createElement(c,p(p({ref:t},y),{},{components:a})):n.createElement(c,p({ref:t},y))}));function c(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[d]="string"==typeof e?e:r,p[1]=i;for(var g=2;g{a.r(t),a.d(t,{assets:()=>y,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>g,toc:()=>d});var n=a(37782),r=a(32345),l=(a(67308),a(62757)),p=["components"],i={hide_table_of_contents:!0},o="Operators",g={unversionedId:"api/operators",id:"version-1.0.26-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.26-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.26-alpha/api/operators",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.26-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.26-alpha/api"}},y={},d=[{value:"Operating Table",id:"operating-table",level:2}],u={toc:d},m="wrapper";function c(e){var t=e.components,a=(0,r.A)(e,p);return(0,l.yg)(m,(0,n.A)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,l.yg)("h1",{id:"operators"},"Operators"),(0,l.yg)("h2",{id:"operating-table"},"Operating Table"),(0,l.yg)("table",null,(0,l.yg)("thead",{parentName:"table"},(0,l.yg)("tr",{parentName:"thead"},(0,l.yg)("th",{parentName:"tr",align:null},"operator"),(0,l.yg)("th",{parentName:"tr",align:null},"string"),(0,l.yg)("th",{parentName:"tr",align:null},"tuple"),(0,l.yg)("th",{parentName:"tr",align:null},"helper"))),(0,l.yg)("tbody",{parentName:"table"},(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/arrayof"},"arrayOf")),(0,l.yg)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.yg)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.yg)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/instanceof"},"instanceOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/intersection"},"&")),(0,l.yg)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.yg)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/keyof"},"keyOf")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.yg)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/morph"},"|",">")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.yg)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/narrow"},"=>")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/union"},"|")),(0,l.yg)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.yg)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.yg)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/valueof"},"===")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.yg)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/parseconfigtuple"},":")),(0,l.yg)("td",{parentName:"tr",align:null}),(0,l.yg)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.yg)("td",{parentName:"tr",align:null})),(0,l.yg)("tr",{parentName:"tbody"},(0,l.yg)("td",{parentName:"tr",align:null},(0,l.yg)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/validatebound"},"bound")),(0,l.yg)("td",{parentName:"tr",align:null},'"N{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var o=n.createContext({}),d=function(t){var e=n.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):p(p({},e),t)),a},u=function(t){var e=d(t.components);return n.createElement(o.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(a),c=r,s=m["".concat(o,".").concat(c)]||m[c]||k[c]||l;return a?n.createElement(s,p(p({ref:e},u),{},{components:a})):n.createElement(s,p({ref:e},u))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,p=new Array(l);p[0]=c;var i={};for(var o in e)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i[m]="string"==typeof t?t:r,p[1]=i;for(var d=2;d{a.r(e),a.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var n=a(73268),r=a(68039),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.26-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.26-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.26-alpha/api/operators",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.26-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.26-alpha/api"}},u={},m=[{value:"Operating Table",id:"operating-table",level:2}],k={toc:m},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,p);return(0,l.kt)(c,(0,n.Z)({},k,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"operators"},"Operators"),(0,l.kt)("h2",{id:"operating-table"},"Operating Table"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"operator"),(0,l.kt)("th",{parentName:"tr",align:null},"string"),(0,l.kt)("th",{parentName:"tr",align:null},"tuple"),(0,l.kt)("th",{parentName:"tr",align:null},"helper"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/arrayof"},"arrayOf")),(0,l.kt)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.kt)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.kt)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/instanceof"},"instanceOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/intersection"},"&")),(0,l.kt)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.kt)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/keyof"},"keyOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.kt)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/morph"},"|",">")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.kt)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/narrow"},"=>")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/union"},"|")),(0,l.kt)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.kt)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/valueof"},"===")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/parseconfigtuple"},":")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.26-alpha/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(29901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(73268),o=r(68039),a=(r(29901),r(57522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.22-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.22-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2457],{62757:(e,n,r)=>{r.d(n,{xA:()=>l,yg:()=>g});var t=r(67308);function a(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=a,g=u["".concat(c,".").concat(m)]||u[m]||f[m]||o;return r?t.createElement(g,i(i({ref:n},l),{},{components:r})):t.createElement(g,i({ref:n},l))}));function g(e,n){var r=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>g,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(37782),a=r(32345),o=(r(67308),r(62757)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.22-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.22-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function g(e){var n=e.components,r=(0,a.A)(e,i);return(0,o.yg)(m,(0,t.A)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"arkscope"},"arkScope"),(0,o.yg)("h2",{id:"text"},"text"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/8417b59e.27e39b2e.js b/assets/js/8417b59e.27e39b2e.js new file mode 100644 index 0000000000..9b05928770 --- /dev/null +++ b/assets/js/8417b59e.27e39b2e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8614],{62757:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>f});var r=t(67308);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{$:()=>y});var r=t(29093),a=t(57089),o=t(1434),i=t(75768),s=t(67308),p=t(8426);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(37782),a=t(32345),o=(t(67308),t(62757)),i=t(77760),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.26-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.26-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.26-alpha/",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.26-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.A)(e,s);return(0,o.yg)(f,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"getting-started"},"Getting Started"),(0,o.yg)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.yg)("sub",null,(0,o.yg)("sub",null,"\ud83d\udce6",(0,o.yg)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.yg)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.yg)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.yg)("code",null,"npm install arktype"),(0,o.yg)("sub",null,"(or whatever package manager you prefer)"),(0,o.yg)("br",null),(0,o.yg)("p",null,"Our types are tested in ",(0,o.yg)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.yg)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.yg)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.yg)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.yg)("p",null,(0,o.yg)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.yg)("h2",{id:"your-first-type"},"Your first type"),(0,o.yg)(i.$,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/8417b59e.7e31710e.js b/assets/js/8417b59e.7e31710e.js deleted file mode 100644 index 394bb6b6b6..0000000000 --- a/assets/js/8417b59e.7e31710e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5737],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(19982),a=t(60024),o=t(53800),i=t(49361),s=t(29901),p=t(43346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(73268),a=t(68039),o=(t(29901),t(57522)),i=t(54665),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.26-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.26-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.26-alpha/",draft:!1,tags:[],version:"1.0.26-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.26-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/8435.dc47fd31.js b/assets/js/8435.dc47fd31.js new file mode 100644 index 0000000000..3d31f82eb9 --- /dev/null +++ b/assets/js/8435.dc47fd31.js @@ -0,0 +1,55 @@ +/*! For license information please see 8435.dc47fd31.js.LICENSE.txt */ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8435],{6253:(e,t,r)=>{r.d(t,{A:()=>oe});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(A,--v):0,y--,10===b&&(y=1,m--),b}function S(){return b=v2||C(b)>3?"":" "}function L(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return E(e,O()+(t<6&&32==_()&&32==S()))}function I(e){for(;S();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:S()}return v}function M(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==_()););return"/*"+E(t,v-1)+"*"+i(47===e?e:S())}function R(e){for(;!C(_());)S();return E(e,v)}var N="-ms-",B="-moz-",W="-webkit-",z="comm",F="rule",G="decl",K="@keyframes";function D(e,t){for(var r="",n=p(e),o=0;o0&&d(B)-g&&h(b>32?V(B+";",n,r,g-1):V(c(B," ","")+";",n,r,g-2),p);break;case 59:B+=";";default:if(h(N=X(B,t,r,m,y,o,f,P,j=[],I=[],g),a),123===C)if(0===y)U(B,t,N,N,j,a,g,f,I);else switch(99===v&&110===u(B,3)?100:v){case 100:case 108:case 109:case 115:U(e,N,N,n&&h(X(e,N,N,0,0,o,f,P,o,j=[],g),I),o,I,g,f,n?j:I);break;default:U(B,N,N,N,[""],I,0,f,I)}}m=y=b=0,w=E=1,P=B="",g=s;break;case 58:g=1+d(B),b=A;default:if(w<1)if(123==C)--w;else if(125==C&&0==w++&&125==k())continue;switch(B+=i(C),C*w){case 38:E=y>0?1:(B+="\f",-1);break;case 44:f[m++]=(d(B)-1)*E,E=1;break;case 64:45===_()&&(B+=$(S())),v=_(),y=g=d(P=B+=R(O())),C++;break;case 45:45===A&&2==d(B)&&(w=0)}}return a}function X(e,t,r,n,i,a,l,u,d,h,m){for(var y=i-1,g=0===i?a:[""],v=p(g),b=0,A=0,x=0;b0?g[k]+" "+S:c(S,/&\f/g,g[k])))&&(d[x++]=_);return w(e,t,r,0===i?F:u,d,h,m)}function Y(e,t,r){return w(e,t,r,z,i(b),f(e,2,-2),0)}function V(e,t,r,n){return w(e,t,r,G,f(e,0,n),f(e,n+1,-1),n)}var J=function(e,t,r){for(var n=0,o=0;n=o,o=_(),38===n&&12===o&&(t[r]=1),!C(o);)S();return E(e,v)},Z=function(e,t){return j(function(e,t){var r=-1,n=44;do{switch(C(n)){case 0:38===n&&12===_()&&(t[r]=1),e[r]+=J(v-1,t,r);break;case 2:e[r]+=$(n);break;case 4:if(44===n){e[++r]=58===_()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}}while(n=S());return e}(P(e),t))},Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(r))&&!n){Q.set(e,!0);for(var o=[],i=Z(t,o),a=r.props,s=0,c=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+B+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?re(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,d(e)-3-(~l(e,"!important")&&10))){case 107:return c(e,":",":"+W)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===u(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return W+e+N+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+N+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+N+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+N+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case G:e.return=re(e.value,e.length);break;case K:return D([x(e,{value:c(e.value,"@","@"+W)})],n);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return D([x(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return D([x(e,{props:[c(t,/:(plac\w+)/,":"+W+"input-$1")]}),x(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[c(t,/:(plac\w+)/,N+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ne;var i,a,s={},c=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r{function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},58138:(e,t,r)=>{r.d(t,{T:()=>s,w:()=>a});var n=r(67308),o=r(6253),i=(r(48132),r(38842),(0,n.createContext)("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null));i.Provider;var a=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(i);return e(t,o,r)}))},s=(0,n.createContext)({})},35444:(e,t,r)=>{r.d(t,{AH:()=>o,i7:()=>i});r(67308),r(6253),r(4674);var n=r(48132);r(38842);function o(){for(var e=arguments.length,t=new Array(e),r=0;r{r.d(t,{J:()=>h});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(44607),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},l=(0,o.A)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,r){return d={name:t,styles:r,next:d},t}))}return 1===n[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return d={name:r.name,styles:r.styles,next:d},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)d={name:n.name,styles:n.styles,next:d},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:d}}},38842:(e,t,r)=>{var n;r.d(t,{s:()=>a});var o=r(67308),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()};i||o.useLayoutEffect},75768:(e,t,r)=>{r.d(t,{A:()=>I});var n=r(32345),o=r(37782),i=r(67308),a=r(35284),s=r(98345),c=r(35444),l=r(61247),u=r(47589),f=r(2790),d=r(76948),p=r(81552),h=r(61755),m=r(1727);function y(e){return(0,m.Ay)("MuiLinearProgress",e)}(0,h.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var g=r(38e3);const v=["className","color","value","valueBuffer","variant"];let b,A,w,x,k,S,_=e=>e;const O=(0,c.i7)(b||(b=_` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),E=(0,c.i7)(A||(A=_` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),C=(0,c.i7)(w||(w=_` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),P=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,l.a)(e.palette[t].main,.62):(0,l.e$)(e.palette[t].main,.5),j=(0,d.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${(0,u.A)(r.color)}`],t[r.variant]]}})((({ownerState:e,theme:t})=>(0,o.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:P(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),$=(0,d.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${(0,u.A)(r.color)}`]]}})((({ownerState:e,theme:t})=>{const r=P(t,e.color);return(0,o.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,c.AH)(x||(x=_` + animation: ${0} 3s infinite linear; + `),C)),T=(0,d.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,u.A)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,o.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.AH)(k||(k=_` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),O))),L=(0,d.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,u.A)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,o.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:P(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.AH)(S||(S=_` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),E))),I=i.forwardRef((function(e,t){const r=(0,p.A)({props:e,name:"MuiLinearProgress"}),{className:i,color:c="primary",value:l,valueBuffer:d,variant:h="indeterminate"}=r,m=(0,n.A)(r,v),b=(0,o.A)({},r,{color:c,variant:h}),A=(e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${(0,u.A)(n)}`,r],dashed:["dashed",`dashedColor${(0,u.A)(n)}`],bar1:["bar",`barColor${(0,u.A)(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&`barColor${(0,u.A)(n)}`,"buffer"===r&&`color${(0,u.A)(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,s.A)(o,y,t)})(b),w=(0,f.A)(),x={},k={bar1:{},bar2:{}};if("determinate"===h||"buffer"===h)if(void 0!==l){x["aria-valuenow"]=Math.round(l),x["aria-valuemin"]=0,x["aria-valuemax"]=100;let e=l-100;"rtl"===w.direction&&(e=-e),k.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===h)if(void 0!==d){let e=(d||0)-100;"rtl"===w.direction&&(e=-e),k.bar2.transform=`translateX(${e}%)`}else 0;return(0,g.jsxs)(j,(0,o.A)({className:(0,a.A)(A.root,i),ownerState:b,role:"progressbar"},x,{ref:t},m,{children:["buffer"===h?(0,g.jsx)($,{className:A.dashed,ownerState:b}):null,(0,g.jsx)(T,{className:A.bar1,ownerState:b,style:k.bar1}),"determinate"===h?null:(0,g.jsx)(L,{className:A.bar2,ownerState:b,style:k.bar2})]}))}))},1434:(e,t,r)=>{r.d(t,{A:()=>y});var n=r(32345),o=r(37782),i=r(67308),a=r(82562),s=r(81781),c=r(58441),l=r(95411),u=r(76948),f=r(81552),d=r(38e3);const p=["component","direction","spacing","divider","children"];function h(e,t){const r=i.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o[t.root]})((({ownerState:e,theme:t})=>{let r=(0,o.A)({display:"flex",flexDirection:"column"},(0,a.NI)({theme:t},(0,a.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,s.LX)(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),i=(0,a.kW)({values:e.direction,base:o}),c=(0,a.kW)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}}));const u=(t,r)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${o=r?i[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,s._W)(n,t)}};var o};r=(0,l.A)(r,(0,a.NI)({theme:t},c,u))}return r=(0,a.iZ)(t.breakpoints,r),r})),y=i.forwardRef((function(e,t){const r=(0,f.A)({props:e,name:"MuiStack"}),i=(0,c.A)(r),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:y}=i,g=(0,n.A)(i,p),v={direction:s,spacing:l};return(0,d.jsx)(m,(0,o.A)({as:a,ownerState:v,ref:t},g,{children:u?h(y,u):y}))}))},66026:(e,t,r)=>{r.d(t,{A:()=>W});var n=r(37782),o=r(32345),i=r(91915),a=r(95411),s=r(52134),c=r(5989),l=r(97877);var u=r(61247);const f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],A={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:f.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,i)))}function k(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,c=(0,o.A)(e,b),l=e.primary||function(e="light"){return"dark"===e?{main:y[200],light:y[50],dark:y[400]}:{main:y[700],light:y[400],dark:y[800]}}(t),k=e.secondary||function(e="light"){return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),S=e.error||function(e="light"){return"dark"===e?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),_=e.info||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:g[700],light:g[500],dark:g[900]}}(t),O=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),E=e.warning||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function C(e){return(0,u.eM)(e,w.text.primary)>=r?w.text.primary:A.text.primary}const P=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=(0,n.A)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error((0,i.A)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error((0,i.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return x(e,"light",o,s),x(e,"dark",a,s),e.contrastText||(e.contrastText=C(e.main)),e},j={dark:w,light:A};return(0,a.A)((0,n.A)({common:(0,n.A)({},f),mode:t,primary:P({color:l,name:"primary"}),secondary:P({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:P({color:S,name:"error"}),warning:P({color:E,name:"warning"}),info:P({color:_,name:"info"}),success:P({color:O,name:"success"}),grey:d,contrastThreshold:r,getContrastText:C,augmentColor:P,tonalOffset:s},j[t]),c)}const S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const _={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){const r="function"==typeof t?t(e):t,{fontFamily:i=O,fontSize:s=14,fontWeightLight:c=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=r,m=(0,o.A)(r,S);const y=s/14,g=h||(e=>e/d*y+"rem"),v=(e,t,r,o,a)=>{return(0,n.A)({fontFamily:i,fontWeight:e,fontSize:g(t),lineHeight:r},i===O?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},a,p);var s},b={h1:v(c,96,1.167,-1.5),h2:v(c,60,1.2,-.5),h3:v(l,48,1.167,0),h4:v(l,34,1.235,.25),h5:v(l,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(l,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(l,16,1.5,.15),body2:v(l,14,1.43,.15),button:v(u,14,1.75,.4,_),caption:v(l,12,1.66,.4),overline:v(l,12,2.66,1,_)};return(0,a.A)((0,n.A)({htmlFontSize:d,pxToRem:g,fontFamily:i,fontSize:s,fontWeightLight:c,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:f},b),m,{clone:!1})}function C(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const P=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],j=["duration","easing","delay"],$={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},T={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function L(e){return`${Math.round(e)}ms`}function I(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function M(e){const t=(0,n.A)({},$,e.easing),r=(0,n.A)({},T,e.duration);return(0,n.A)({getAutoHeightDuration:I,create:(e=["all"],n={})=>{const{duration:i=r.standard,easing:a=t.easeInOut,delay:s=0}=n;(0,o.A)(n,j);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:L(i)} ${a} ${"string"==typeof s?s:L(s)}`)).join(",")}},e,{easing:t,duration:r})}const R={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},N=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function B(e={},...t){const{mixins:r={},palette:u={},transitions:f={},typography:d={}}=e,p=(0,o.A)(e,N);if(e.vars)throw new Error((0,i.A)(18));const h=k(u),m=(0,s.A)(e);let y=(0,a.A)(m,{mixins:(g=m.breakpoints,v=r,(0,n.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},v)),palette:h,shadows:P.slice(),typography:E(h,d),transitions:M(f),zIndex:(0,n.A)({},R)});var g,v;return y=(0,a.A)(y,p),y=t.reduce(((e,t)=>(0,a.A)(e,t)),y),y.unstable_sxConfig=(0,n.A)({},c.A,null==p?void 0:p.unstable_sxConfig),y.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},y}const W=B},47504:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(66026).A)()},76948:(e,t,r)=>{r.d(t,{Ay:()=>R,ep:()=>I});var n=r(37782),o=r(32345),i=r(67308),a=r(44607),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=(0,a.A)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(58138);var u=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},f=r(48132),d=r(38842),p=c,h=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:h},y=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;u(t,r,n);(0,d.s)((function(){return function(e,t,r){u(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,r,n)}));return null};const v=function e(t,r){var o,a,s=t.__emotion_real===t,c=s&&t.__emotion_base||t;void 0!==r&&(o=r.label,a=r.target);var u=y(t,r,s),d=u||m(c),p=!d("as");return function(){var h=arguments,v=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&v.push("label:"+o+";"),null==h[0]||void 0===h[0].raw)v.push.apply(v,h);else{0,v.push(h[0][0]);for(var b=h.length,A=1;Ae?e.charAt(0).toLowerCase()+e.slice(1):e;function j({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function $(e){return e?(t,r)=>r[e]:null}function T(e,t){let{ownerState:r}=t,i=(0,o.A)(t,S);const a="function"==typeof e?e((0,n.A)({ownerState:r},i)):e;if(Array.isArray(a))return a.flatMap((e=>T(e,(0,n.A)({ownerState:r},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.A)(a,_);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,n.A)({ownerState:r},i,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&i[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.A)({ownerState:r},i,r)):e.style))})),t}return a}var L=r(47504);const I=e=>E(e)&&"classes"!==e,M=function(e={}){const{themeId:t,defaultTheme:r=C,rootShouldForwardProp:i=E,slotShouldForwardProp:a=E}=e,s=e=>(0,k.A)((0,n.A)({},e,{theme:j((0,n.A)({},e,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(e,c={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:p=$(P(u))}=c,h=(0,o.A)(c,O),m=void 0!==f?f:u&&"Root"!==u&&"root"!==u||!1,y=d||!1;let g=E;"Root"===u||"root"===u?g=i:u?g=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=function(e,t){return A(e,t)}(e,(0,n.A)({shouldForwardProp:g,label:undefined},h)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,w.Q)(e)?o=>T(e,(0,n.A)({},o,{theme:j({theme:o.theme,defaultTheme:r,themeId:t})})):e,x=(o,...i)=>{let a=b(o);const c=i?i.map(b):[];l&&p&&c.push((e=>{const o=j((0,n.A)({},e,{defaultTheme:r,themeId:t}));if(!o.components||!o.components[l]||!o.components[l].styleOverrides)return null;const i=o.components[l].styleOverrides,a={};return Object.entries(i).forEach((([t,r])=>{a[t]=T(r,(0,n.A)({},e,{theme:o}))})),p(e,a)})),l&&!m&&c.push((e=>{var o;const i=j((0,n.A)({},e,{defaultTheme:r,themeId:t}));return T({variants:null==i||null==(o=i.components)||null==(o=o[l])?void 0:o.variants},(0,n.A)({},e,{theme:i}))})),y||c.push(s);const u=c.length-i.length;if(Array.isArray(o)&&u>0){const e=new Array(u).fill("");a=[...o,...e],a.raw=[...o.raw,...e]}const f=v(a,...c);return e.muiName&&(f.muiName=e.muiName),f};return v.withConfig&&(x.withConfig=v.withConfig),x}}({defaultTheme:L.A,rootShouldForwardProp:I}),R=M},2790:(e,t,r)=>{r.d(t,{A:()=>i});r(67308);var n=r(23736),o=r(47504);function i(){return(0,n.A)(o.A)}},81552:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(12150),o=r(23736);var i=r(47504);function a({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:i}){let a=(0,o.A)(r);return i&&(a=a[i]||a),(0,n.A)({theme:a,name:t,props:e})}({props:e,name:t,defaultTheme:i.A})}},47589:(e,t,r)=>{r.d(t,{A:()=>n});const n=r(20997).A},82562:(e,t,r)=>{r.d(t,{EU:()=>s,NI:()=>a,iZ:()=>l,kW:()=>u,vf:()=>c,zu:()=>o});var n=r(95411);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||i;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||i;return Object.keys(t).reduce(((n,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){n[e.up(i)]=r(t[i],i)}else{const e=i;n[e]=t[e]}return n}),{})}return r(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function c(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function l(e,...t){const r=s(e),o=[r,...t].reduce(((e,t)=>(0,n.A)(e,t)),{});return c(Object.keys(r),o)}function u({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n{null!=e[t]&&(r[t]=!0)})),r}(e,t),o=Object.keys(n);if(0===o.length)return e;let i;return o.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[i],i=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[i],i=r):t[r]=e,t)),{})}},61247:(e,t,r)=>{r.d(t,{X4:()=>u,e$:()=>f,eM:()=>l,a:()=>d});var n=r(91915);const o=function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))};function i(e,t=0,r=1){return o(e,t,r)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.A)(9,e));let o,i=e.substring(t+1,e.length-1);if("color"===r){if(i=i.split(" "),o=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,n.A)(10,o))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:r,values:i,colorSpace:o}}function s(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function c(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){e=a(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),c=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),s({type:l,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(e,t){return e=a(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function f(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function d(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}},52134:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(37782),o=r(32345),i=r(95411);const a=["values","unit","step"],s=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,n.A)({},e,{[t.key]:t.val})),{})};const c={borderRadius:4};var l=r(81781);var u=r(97877),f=r(5989);function d(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const p=["breakpoints","palette","spacing","shape"];const h=function(e={},...t){const{breakpoints:r={},palette:h={},spacing:m,shape:y={}}=e,g=(0,o.A)(e,p),v=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5}=e,c=(0,o.A)(e,a),l=s(t),u=Object.keys(l);function f(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function d(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-i/100}${r})`}function p(e,n){const o=u.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:n)-i/100}${r})`}return(0,n.A)({keys:u,values:l,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(m);let A=(0,i.A)({breakpoints:v,direction:"ltr",components:{},palette:(0,n.A)({mode:"light"},h),spacing:b,shape:(0,n.A)({},c,y)},g);return A.applyStyles=d,A=t.reduce(((e,t)=>(0,i.A)(e,t)),A),A.unstable_sxConfig=(0,n.A)({},f.A,null==g?void 0:g.unstable_sxConfig),A.unstable_sx=function(e){return(0,u.A)({sx:e,theme:this})},A}},55106:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(95411);const o=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},81781:(e,t,r)=>{r.d(t,{LX:()=>h,MA:()=>p,_W:()=>m,Lc:()=>v,Ms:()=>b});var n=r(82562),o=r(6875),i=r(55106);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!c[e])return[e];e=c[e]}const[t,r]=e.split(""),n=a[t],o=s[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,r,n){var i;const a=null!=(i=(0,o.Yn)(e,t,!1))?i:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function h(e){return p(e,"spacing",8)}function m(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function y(e,t,r,o){if(-1===t.indexOf(r))return null;const i=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=m(t,r),e)),{})}(l(r),o),a=e[r];return(0,n.NI)(e,a,i)}function g(e,t){const r=h(e.theme);return Object.keys(e).map((n=>y(e,t,n,r))).reduce(i.A,{})}function v(e){return g(e,u)}function b(e){return g(e,f)}function A(e){return g(e,d)}v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=f,A.propTypes={},A.filterProps=d},6875:(e,t,r)=>{r.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>i});var n=r(20997),o=r(82562);function i(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}const s=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:s,transform:c}=e,l=e=>{if(null==e[t])return null;const l=e[t],u=i(e.theme,s)||{};return(0,o.NI)(e,l,(e=>{let o=a(u,c,e);return e===o&&"string"==typeof e&&(o=a(u,c,`${t}${"default"===e?"":(0,n.A)(e)}`,e)),!1===r?o:{[r]:o}}))};return l.propTypes={},l.filterProps=[t],l}},5989:(e,t,r)=>{r.d(t,{A:()=>I});var n=r(81781),o=r(6875),i=r(55106);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?(0,i.A)(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r};var s=r(82562);function c(e){return"number"!=typeof e?e:`${e}px solid`}function l(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=l("border",c),f=l("borderTop",c),d=l("borderRight",c),p=l("borderBottom",c),h=l("borderLeft",c),m=l("borderColor"),y=l("borderTopColor"),g=l("borderRightColor"),v=l("borderBottomColor"),b=l("borderLeftColor"),A=l("outline",c),w=l("outlineColor"),x=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n._W)(t,e)});return(0,s.NI)(e,e.borderRadius,r)}return null};x.propTypes={},x.filterProps=["borderRadius"];a(u,f,d,p,h,m,y,g,v,b,x,A,w);const k=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.MA)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n._W)(t,e)});return(0,s.NI)(e,e.gap,r)}return null};k.propTypes={},k.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.MA)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n._W)(t,e)});return(0,s.NI)(e,e.columnGap,r)}return null};S.propTypes={},S.filterProps=["columnGap"];const _=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.MA)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n._W)(t,e)});return(0,s.NI)(e,e.rowGap,r)}return null};_.propTypes={},_.filterProps=["rowGap"];a(k,S,_,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function O(e,t){return"grey"===t?t:e}a((0,o.Ay)({prop:"color",themeKey:"palette",transform:O}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:O}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:O}));function E(e){return e<=1&&0!==e?100*e+"%":e}const C=(0,o.Ay)({prop:"width",transform:E}),P=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.zu[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:E(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};P.filterProps=["maxWidth"];const j=(0,o.Ay)({prop:"minWidth",transform:E}),$=(0,o.Ay)({prop:"height",transform:E}),T=(0,o.Ay)({prop:"maxHeight",transform:E}),L=(0,o.Ay)({prop:"minHeight",transform:E}),I=((0,o.Ay)({prop:"size",cssProperty:"width",transform:E}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:E}),a(C,P,j,$,T,L,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:c},borderTop:{themeKey:"borders",transform:c},borderRight:{themeKey:"borders",transform:c},borderBottom:{themeKey:"borders",transform:c},borderLeft:{themeKey:"borders",transform:c},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:c},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:x},color:{themeKey:"palette",transform:O},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:O},backgroundColor:{themeKey:"palette",transform:O},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k},rowGap:{style:_},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:P},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},58441:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(37782),o=r(32345),i=r(95411),a=r(5989);const s=["sx"],c=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function l(e){const{sx:t}=e,r=(0,o.A)(e,s),{systemProps:a,otherProps:l}=c(r);let u;return u=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return(0,i.Q)(r)?(0,n.A)({},a,r):a}:(0,n.A)({},a,t),(0,n.A)({},l,{sx:u})}},97877:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(20997),o=r(55106),i=r(6875),a=r(82562),s=r(5989);const c=function(){function e(e,t,r,o){const s={[e]:t,theme:r},c=o[e];if(!c)return{[e]:t};const{cssProperty:l=e,themeKey:u,transform:f,style:d}=c;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,i.Yn)(r,u)||{};if(d)return d(s);return(0,a.NI)(s,t,(t=>{let r=(0,i.BO)(p,f,t);return t===r&&"string"==typeof t&&(r=(0,i.BO)(p,f,`${e}${"default"===t?"":(0,n.A)(t)}`,t)),!1===l?r:{[l]:r}}))}return function t(r){var n;const{sx:i,theme:c={}}=r||{};if(!i)return null;const l=null!=(n=c.unstable_sxConfig)?n:s.A;function u(r){let n=r;if("function"==typeof r)n=r(c);else if("object"!=typeof r)return r;if(!n)return null;const i=(0,a.EU)(c.breakpoints),s=Object.keys(i);let u=i;return Object.keys(n).forEach((r=>{const i=(s=n[r],f=c,"function"==typeof s?s(f):s);var s,f;if(null!=i)if("object"==typeof i)if(l[r])u=(0,o.A)(u,e(r,i,c,l));else{const e=(0,a.NI)({theme:c},i,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,i)?u=(0,o.A)(u,e):u[r]=t({sx:i,theme:c})}else u=(0,o.A)(u,e(r,i,c,l))})),(0,a.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}();c.filterProps=["sx"];const l=c},23736:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(52134),o=r(89705);const i=(0,n.A)();const a=function(e=i){return(0,o.A)(e)}},12150:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(39129);function o(e){const{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.A)(t.components[r].defaultProps,o):o}},89705:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(67308),o=r(58138);const i=function(e=null){const t=n.useContext(o.T);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},70381:(e,t,r)=>{r.d(t,{A:()=>o});const n=e=>e,o=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})()},20997:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(91915);function o(e){if("string"!=typeof e)throw new Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},98345:(e,t,r)=>{function n(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{A:()=>n})},95411:(e,t,r)=>{r.d(t,{A:()=>a,Q:()=>o});var n=r(37782);function o(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=i(e[r])})),t}function a(e,t,r={clone:!0}){const s=r.clone?(0,n.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(o(t[n])&&n in e&&o(e[n])?s[n]=a(e[n],t[n],r):r.clone?s[n]=o(t[n])?i(t[n]):t[n]:s[n]=t[n])})),s}},91915:(e,t,r)=>{function n(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rn})},1727:(e,t,r)=>{r.d(t,{Ay:()=>i});var n=r(70381);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t,r="Mui"){const i=o[t];return i?`${r}-${i}`:`${n.A.generate(e)}-${t}`}},61755:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(1727);function o(e,t,r="Mui"){const o={};return t.forEach((t=>{o[t]=(0,n.Ay)(e,t,r)})),o}},39129:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(37782);function o(e,t){const r=(0,n.A)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))r[i]=(0,n.A)({},e[i],r[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];r[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(r[i]=(0,n.A)({},s),Object.keys(a).forEach((e=>{r[i][e]=o(a[e],s[e])}))):r[i]=s:r[i]=a}else void 0===r[i]&&(r[i]=e[i])})),r}},8426:(e,t,r)=>{r.d(t,{A:()=>S});var n=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],o={clickToLoad:function(e){return a("ctl",e)},devToolsHeight:function(e){return s("devtoolsheight",e)},forceEmbedLayout:function(e){return a("embed",e)},hideDevTools:function(e){return a("hidedevtools",e)},hideExplorer:function(e){return a("hideExplorer",e)},hideNavigation:function(e){return a("hideNavigation",e)},showSidebar:function(e){return function(e,t){return"boolean"==typeof t?"showSidebar="+(t?"1":"0"):""}(0,e)},openFile:function(e){return function(e,t){return(Array.isArray(t)?t:[t]).filter((function(e){return"string"==typeof e&&""!==e.trim()})).map((function(e){return"file="+encodeURIComponent(e.trim())}))}(0,e).join("&")},terminalHeight:function(e){return s("terminalHeight",e)},theme:function(e){return c("theme",["light","dark"],e)},view:function(e){return c("view",["preview","editor"],e)}};function i(e){void 0===e&&(e={});var t=Object.entries(e).map((function(e){var t=e[0],r=e[1];return null!=r&&o.hasOwnProperty(t)?o[t](r):""})).filter(Boolean);return t.length?"?"+t.join("&"):""}function a(e,t){return!0===t?e+"=1":""}function s(e,t){return"number"==typeof t&&t>=0&&t<=100?e+"="+Math.round(t):""}function c(e,t,r){return"string"==typeof r&&t.includes(r)?e+"="+r:""}function l(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function u(e,t){return""+d(t)+e+i(t)}function f(e,t){var r={forceEmbedLayout:!0};return t&&"object"==typeof t&&Object.assign(r,t),""+d(r)+e+i(r)}function d(e){return void 0===e&&(e={}),"string"==typeof e.origin?e.origin:"https://stackblitz.com"}function p(e,t,r){if(!t||!e||!e.parentNode)throw new Error("Invalid Element");e.id&&(t.id=e.id),e.className&&(t.className=e.className),function(e,t){t&&"object"==typeof t&&(Object.hasOwnProperty.call(t,"height")&&(e.height=""+t.height),Object.hasOwnProperty.call(t,"width")&&(e.width=""+t.width)),e.height||(e.height="300"),e.width||e.setAttribute("style","width:100%;")}(t,r),e.parentNode.replaceChild(t,e)}function h(e){if("string"==typeof e){var t=document.getElementById(e);if(!t)throw new Error("Could not find element with id '"+e+"'");return t}if(e instanceof HTMLElement)return e;throw new Error("Invalid element: "+e)}function m(e){return e&&!1===e.newWindow?"_self":"_blank"}function y(){return y=Object.assign||function(e){for(var t=1;t=20)return i(),r("Timeout: Unable to establish a connection with the StackBlitz VM"),void b.forEach((function(e,r){e.id===t.id&&b.splice(r,1)}));a++,o()}}),500)})),b.push(this)};function w(e,t){var r=document.createElement("input");return r.type="hidden",r.name=e,r.value=t,r}function x(e){if(!n.includes(e.template)){var t=n.map((function(e){return"'"+e+"'"})).join(", ");console.warn("Unsupported project.template: must be one of "+t)}var r="node"===e.template,o=document.createElement("form");return o.method="POST",o.setAttribute("style","display:none!important;"),o.appendChild(w("project[title]",e.title)),o.appendChild(w("project[description]",e.description)),o.appendChild(w("project[template]",e.template)),e.dependencies&&(r?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):o.appendChild(w("project[dependencies]",JSON.stringify(e.dependencies)))),e.settings&&o.appendChild(w("project[settings]",JSON.stringify(e.settings))),Object.keys(e.files).forEach((function(t){var r="project[files]"+function(e){return"["+e.replace(/\[/g,"%5B").replace(/\]/g,"%5D")+"]"}(t),n=e.files[t];"string"==typeof n&&o.appendChild(w(r,n))})),o}function k(e){var t,r,n,o;return null!=e&&e.contentWindow?(null!=(o=(r=e)instanceof Element?"element":"id",t=null!=(n=b.find((function(e){return e[o]===r})))?n:null)?t:new A(e)).pending:Promise.reject("Provided element is not an iframe.")}var S={connect:k,embedGithubProject:function(e,t,r){var n=h(e),o=document.createElement("iframe");return o.src=f("/github/"+t,r),p(n,o,r),k(o)},embedProject:function(e,t,r){var n,o=h(e),i=function(e,t){var r=x(e);return r.action=f("/run",t),r.id="sb",""+r.outerHTML+" - - - + + +
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/ark/index.html b/docs/1.0.19-alpha/api/ark/index.html index 1dc300edd5..db41ae9bd3 100644 --- a/docs/1.0.19-alpha/api/ark/index.html +++ b/docs/1.0.19-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.19-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/arkscope/index.html b/docs/1.0.19-alpha/api/arkscope/index.html index b9f7640b45..b80ca6f96f 100644 --- a/docs/1.0.19-alpha/api/arkscope/index.html +++ b/docs/1.0.19-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.19-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/arrayof/index.html b/docs/1.0.19-alpha/api/arrayof/index.html index 8582eba732..6139a9012f 100644 --- a/docs/1.0.19-alpha/api/arrayof/index.html +++ b/docs/1.0.19-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.19-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/index.html b/docs/1.0.19-alpha/api/index.html index f30369748f..87c09c1b55 100644 --- a/docs/1.0.19-alpha/api/index.html +++ b/docs/1.0.19-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.19-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/infer/index.html b/docs/1.0.19-alpha/api/infer/index.html index 181de7d0ee..b9fed8eece 100644 --- a/docs/1.0.19-alpha/api/infer/index.html +++ b/docs/1.0.19-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.19-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/instanceof/index.html b/docs/1.0.19-alpha/api/instanceof/index.html index 3ed95b666f..2772084721 100644 --- a/docs/1.0.19-alpha/api/instanceof/index.html +++ b/docs/1.0.19-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.19-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/intersection/index.html b/docs/1.0.19-alpha/api/intersection/index.html index ae223b0a5d..9f4300e95f 100644 --- a/docs/1.0.19-alpha/api/intersection/index.html +++ b/docs/1.0.19-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.19-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/jsobjectsscope/index.html b/docs/1.0.19-alpha/api/jsobjectsscope/index.html index a9533e39e2..49c2bcaa51 100644 --- a/docs/1.0.19-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.19-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.19-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/keyof/index.html b/docs/1.0.19-alpha/api/keyof/index.html index 36bc8ce51e..406a8e2930 100644 --- a/docs/1.0.19-alpha/api/keyof/index.html +++ b/docs/1.0.19-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.19-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/keywords/index.html b/docs/1.0.19-alpha/api/keywords/index.html index 3eb550a69b..4bef78d18f 100644 --- a/docs/1.0.19-alpha/api/keywords/index.html +++ b/docs/1.0.19-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.19-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/morph/index.html b/docs/1.0.19-alpha/api/morph/index.html index 1c0a28707c..5be9881a33 100644 --- a/docs/1.0.19-alpha/api/morph/index.html +++ b/docs/1.0.19-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.19-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/narrow/index.html b/docs/1.0.19-alpha/api/narrow/index.html index d2cefba6fc..f865d6c8be 100644 --- a/docs/1.0.19-alpha/api/narrow/index.html +++ b/docs/1.0.19-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.19-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/operators/index.html b/docs/1.0.19-alpha/api/operators/index.html index e66214c050..a6c90d1658 100644 --- a/docs/1.0.19-alpha/api/operators/index.html +++ b/docs/1.0.19-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.19-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/parseconfigtuple/index.html b/docs/1.0.19-alpha/api/parseconfigtuple/index.html index 98e9300968..9f666a6eb8 100644 --- a/docs/1.0.19-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.19-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.19-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/problem/index.html b/docs/1.0.19-alpha/api/problem/index.html index fe23e8f311..6f2de5258f 100644 --- a/docs/1.0.19-alpha/api/problem/index.html +++ b/docs/1.0.19-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.19-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/problems/index.html b/docs/1.0.19-alpha/api/problems/index.html index 0fa7f592d6..9c7eed8d7e 100644 --- a/docs/1.0.19-alpha/api/problems/index.html +++ b/docs/1.0.19-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.19-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/resolvednode/index.html b/docs/1.0.19-alpha/api/resolvednode/index.html index 63743cbcfa..2bd4f67579 100644 --- a/docs/1.0.19-alpha/api/resolvednode/index.html +++ b/docs/1.0.19-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.19-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/scope/index.html b/docs/1.0.19-alpha/api/scope/index.html index ebe612e83a..742f077d37 100644 --- a/docs/1.0.19-alpha/api/scope/index.html +++ b/docs/1.0.19-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.19-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/space/index.html b/docs/1.0.19-alpha/api/space/index.html index 810d884386..acdfe9e68a 100644 --- a/docs/1.0.19-alpha/api/space/index.html +++ b/docs/1.0.19-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.19-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/tskeywordsscope/index.html b/docs/1.0.19-alpha/api/tskeywordsscope/index.html index 9ee3775703..418a51c0f7 100644 --- a/docs/1.0.19-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.19-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.19-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/type/index.html b/docs/1.0.19-alpha/api/type/index.html index 3daf4ae083..39b3e88399 100644 --- a/docs/1.0.19-alpha/api/type/index.html +++ b/docs/1.0.19-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.19-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/union/index.html b/docs/1.0.19-alpha/api/union/index.html index 241e6a91af..48a031e1e6 100644 --- a/docs/1.0.19-alpha/api/union/index.html +++ b/docs/1.0.19-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.19-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/validatebound/index.html b/docs/1.0.19-alpha/api/validatebound/index.html index d2853af40b..0aeb93c6d0 100644 --- a/docs/1.0.19-alpha/api/validatebound/index.html +++ b/docs/1.0.19-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.19-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/validatedivisor/index.html b/docs/1.0.19-alpha/api/validatedivisor/index.html index ced1dc158b..f3e234845a 100644 --- a/docs/1.0.19-alpha/api/validatedivisor/index.html +++ b/docs/1.0.19-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.19-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/validationscope/index.html b/docs/1.0.19-alpha/api/validationscope/index.html index 739569da85..f44046d15a 100644 --- a/docs/1.0.19-alpha/api/validationscope/index.html +++ b/docs/1.0.19-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.19-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/valueof/index.html b/docs/1.0.19-alpha/api/valueof/index.html index 7cfec4313b..003c160c53 100644 --- a/docs/1.0.19-alpha/api/valueof/index.html +++ b/docs/1.0.19-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.19-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/index.html b/docs/1.0.19-alpha/index.html index d1d5812a15..4f81f3cf06 100644 --- a/docs/1.0.19-alpha/index.html +++ b/docs/1.0.19-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.19-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/scopes/index.html b/docs/1.0.19-alpha/scopes/index.html index 05e3a4bac4..02b9574918 100644 --- a/docs/1.0.19-alpha/scopes/index.html +++ b/docs/1.0.19-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.19-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/ark/index.html b/docs/1.0.20-alpha/api/ark/index.html index 643b3774d6..80cc26bbfd 100644 --- a/docs/1.0.20-alpha/api/ark/index.html +++ b/docs/1.0.20-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.20-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/arkscope/index.html b/docs/1.0.20-alpha/api/arkscope/index.html index 944433c6f4..2f68b73616 100644 --- a/docs/1.0.20-alpha/api/arkscope/index.html +++ b/docs/1.0.20-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.20-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/arrayof/index.html b/docs/1.0.20-alpha/api/arrayof/index.html index 7fcba079ec..d9a83dcab4 100644 --- a/docs/1.0.20-alpha/api/arrayof/index.html +++ b/docs/1.0.20-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.20-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/index.html b/docs/1.0.20-alpha/api/index.html index 7751d6554e..8a345e1187 100644 --- a/docs/1.0.20-alpha/api/index.html +++ b/docs/1.0.20-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.20-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/infer/index.html b/docs/1.0.20-alpha/api/infer/index.html index 5d693feeea..ee17f07e36 100644 --- a/docs/1.0.20-alpha/api/infer/index.html +++ b/docs/1.0.20-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.20-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/instanceof/index.html b/docs/1.0.20-alpha/api/instanceof/index.html index b3842f5db7..b1a8e02554 100644 --- a/docs/1.0.20-alpha/api/instanceof/index.html +++ b/docs/1.0.20-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.20-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/intersection/index.html b/docs/1.0.20-alpha/api/intersection/index.html index 1473457ca8..09c9c2290e 100644 --- a/docs/1.0.20-alpha/api/intersection/index.html +++ b/docs/1.0.20-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.20-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/jsobjectsscope/index.html b/docs/1.0.20-alpha/api/jsobjectsscope/index.html index c9bc3125d9..af3882be75 100644 --- a/docs/1.0.20-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.20-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.20-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/keyof/index.html b/docs/1.0.20-alpha/api/keyof/index.html index e1877bdafd..a2a5275a04 100644 --- a/docs/1.0.20-alpha/api/keyof/index.html +++ b/docs/1.0.20-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.20-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/keywords/index.html b/docs/1.0.20-alpha/api/keywords/index.html index 15e73f9852..41f40f89ac 100644 --- a/docs/1.0.20-alpha/api/keywords/index.html +++ b/docs/1.0.20-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.20-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/morph/index.html b/docs/1.0.20-alpha/api/morph/index.html index 9f02561be1..dd2fcb8805 100644 --- a/docs/1.0.20-alpha/api/morph/index.html +++ b/docs/1.0.20-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.20-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/narrow/index.html b/docs/1.0.20-alpha/api/narrow/index.html index 99cfa3dcab..53c630362b 100644 --- a/docs/1.0.20-alpha/api/narrow/index.html +++ b/docs/1.0.20-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.20-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/operators/index.html b/docs/1.0.20-alpha/api/operators/index.html index c7907a545f..cce945b68e 100644 --- a/docs/1.0.20-alpha/api/operators/index.html +++ b/docs/1.0.20-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.20-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/parseconfigtuple/index.html b/docs/1.0.20-alpha/api/parseconfigtuple/index.html index f5032df136..7b6f86664b 100644 --- a/docs/1.0.20-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.20-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.20-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/problem/index.html b/docs/1.0.20-alpha/api/problem/index.html index 31afb1d1a8..f10ee4d7d5 100644 --- a/docs/1.0.20-alpha/api/problem/index.html +++ b/docs/1.0.20-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.20-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/problems/index.html b/docs/1.0.20-alpha/api/problems/index.html index 560e10db90..2531fb9399 100644 --- a/docs/1.0.20-alpha/api/problems/index.html +++ b/docs/1.0.20-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.20-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/resolvednode/index.html b/docs/1.0.20-alpha/api/resolvednode/index.html index cb67d27695..df19ce7a95 100644 --- a/docs/1.0.20-alpha/api/resolvednode/index.html +++ b/docs/1.0.20-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.20-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/scope/index.html b/docs/1.0.20-alpha/api/scope/index.html index d1edf15cb2..5236ab28ba 100644 --- a/docs/1.0.20-alpha/api/scope/index.html +++ b/docs/1.0.20-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.20-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/space/index.html b/docs/1.0.20-alpha/api/space/index.html index 8b4fe71718..b5e747ceef 100644 --- a/docs/1.0.20-alpha/api/space/index.html +++ b/docs/1.0.20-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.20-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/tskeywordsscope/index.html b/docs/1.0.20-alpha/api/tskeywordsscope/index.html index 6a5911156c..aa3ca41d88 100644 --- a/docs/1.0.20-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.20-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.20-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/type/index.html b/docs/1.0.20-alpha/api/type/index.html index a6f09101aa..9c9c862904 100644 --- a/docs/1.0.20-alpha/api/type/index.html +++ b/docs/1.0.20-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.20-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/union/index.html b/docs/1.0.20-alpha/api/union/index.html index 9bd8c48073..dae78f2f1c 100644 --- a/docs/1.0.20-alpha/api/union/index.html +++ b/docs/1.0.20-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.20-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/validatebound/index.html b/docs/1.0.20-alpha/api/validatebound/index.html index ac9ad74775..fd0a3c4e86 100644 --- a/docs/1.0.20-alpha/api/validatebound/index.html +++ b/docs/1.0.20-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.20-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/validatedivisor/index.html b/docs/1.0.20-alpha/api/validatedivisor/index.html index b30d22c70d..bfec0d4b38 100644 --- a/docs/1.0.20-alpha/api/validatedivisor/index.html +++ b/docs/1.0.20-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.20-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/validationscope/index.html b/docs/1.0.20-alpha/api/validationscope/index.html index 6d8ed0817e..94e8b9a562 100644 --- a/docs/1.0.20-alpha/api/validationscope/index.html +++ b/docs/1.0.20-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.20-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/valueof/index.html b/docs/1.0.20-alpha/api/valueof/index.html index 18e0445d48..20e0caae9d 100644 --- a/docs/1.0.20-alpha/api/valueof/index.html +++ b/docs/1.0.20-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.20-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/index.html b/docs/1.0.20-alpha/index.html index 31febe0c13..37bc8262de 100644 --- a/docs/1.0.20-alpha/index.html +++ b/docs/1.0.20-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.20-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/scopes/index.html b/docs/1.0.20-alpha/scopes/index.html index 2d9157329b..de301e321d 100644 --- a/docs/1.0.20-alpha/scopes/index.html +++ b/docs/1.0.20-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.20-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/ark/index.html b/docs/1.0.21-alpha/api/ark/index.html index e4f0c0eacf..da7e3bdbec 100644 --- a/docs/1.0.21-alpha/api/ark/index.html +++ b/docs/1.0.21-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.21-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/arkscope/index.html b/docs/1.0.21-alpha/api/arkscope/index.html index fd8346a3d7..40908aea22 100644 --- a/docs/1.0.21-alpha/api/arkscope/index.html +++ b/docs/1.0.21-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.21-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/arrayof/index.html b/docs/1.0.21-alpha/api/arrayof/index.html index 587aeab77d..b3b6259f7b 100644 --- a/docs/1.0.21-alpha/api/arrayof/index.html +++ b/docs/1.0.21-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.21-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/index.html b/docs/1.0.21-alpha/api/index.html index 96fccea466..9a351ea545 100644 --- a/docs/1.0.21-alpha/api/index.html +++ b/docs/1.0.21-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.21-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/infer/index.html b/docs/1.0.21-alpha/api/infer/index.html index a9fb6bced8..24c3182e02 100644 --- a/docs/1.0.21-alpha/api/infer/index.html +++ b/docs/1.0.21-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.21-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/instanceof/index.html b/docs/1.0.21-alpha/api/instanceof/index.html index 733879e72f..0480211ffa 100644 --- a/docs/1.0.21-alpha/api/instanceof/index.html +++ b/docs/1.0.21-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.21-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/intersection/index.html b/docs/1.0.21-alpha/api/intersection/index.html index 65651b6b07..f1fbb548da 100644 --- a/docs/1.0.21-alpha/api/intersection/index.html +++ b/docs/1.0.21-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.21-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/jsobjectsscope/index.html b/docs/1.0.21-alpha/api/jsobjectsscope/index.html index 00434d5102..6391d44de1 100644 --- a/docs/1.0.21-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.21-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.21-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/keyof/index.html b/docs/1.0.21-alpha/api/keyof/index.html index e4cdaf7fed..98ac8deda3 100644 --- a/docs/1.0.21-alpha/api/keyof/index.html +++ b/docs/1.0.21-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.21-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/keywords/index.html b/docs/1.0.21-alpha/api/keywords/index.html index 71fc19b827..2dda6de228 100644 --- a/docs/1.0.21-alpha/api/keywords/index.html +++ b/docs/1.0.21-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.21-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/morph/index.html b/docs/1.0.21-alpha/api/morph/index.html index 31a7b81161..56441b87f2 100644 --- a/docs/1.0.21-alpha/api/morph/index.html +++ b/docs/1.0.21-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.21-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/narrow/index.html b/docs/1.0.21-alpha/api/narrow/index.html index fd7ff5134e..3ae7cc9a6b 100644 --- a/docs/1.0.21-alpha/api/narrow/index.html +++ b/docs/1.0.21-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.21-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/operators/index.html b/docs/1.0.21-alpha/api/operators/index.html index 76c6bc5c1c..e8ab08058f 100644 --- a/docs/1.0.21-alpha/api/operators/index.html +++ b/docs/1.0.21-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.21-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/parseconfigtuple/index.html b/docs/1.0.21-alpha/api/parseconfigtuple/index.html index 2cf24fd6a8..ab7e0e294e 100644 --- a/docs/1.0.21-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.21-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.21-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/problem/index.html b/docs/1.0.21-alpha/api/problem/index.html index a18d583e80..403371202d 100644 --- a/docs/1.0.21-alpha/api/problem/index.html +++ b/docs/1.0.21-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.21-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/problems/index.html b/docs/1.0.21-alpha/api/problems/index.html index 9d1953d21d..52c737c5e9 100644 --- a/docs/1.0.21-alpha/api/problems/index.html +++ b/docs/1.0.21-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.21-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/resolvednode/index.html b/docs/1.0.21-alpha/api/resolvednode/index.html index 3dd6f0d91e..f55512ee32 100644 --- a/docs/1.0.21-alpha/api/resolvednode/index.html +++ b/docs/1.0.21-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.21-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/scope/index.html b/docs/1.0.21-alpha/api/scope/index.html index 92c90304ef..7387220177 100644 --- a/docs/1.0.21-alpha/api/scope/index.html +++ b/docs/1.0.21-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.21-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/space/index.html b/docs/1.0.21-alpha/api/space/index.html index 8b49a0c79a..9985925de3 100644 --- a/docs/1.0.21-alpha/api/space/index.html +++ b/docs/1.0.21-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.21-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/tskeywordsscope/index.html b/docs/1.0.21-alpha/api/tskeywordsscope/index.html index 2fefa3a75c..2eed57b7ab 100644 --- a/docs/1.0.21-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.21-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.21-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/type/index.html b/docs/1.0.21-alpha/api/type/index.html index 171e2f29c6..2fa52d6605 100644 --- a/docs/1.0.21-alpha/api/type/index.html +++ b/docs/1.0.21-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.21-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/union/index.html b/docs/1.0.21-alpha/api/union/index.html index a2814bea08..c626c5e9f5 100644 --- a/docs/1.0.21-alpha/api/union/index.html +++ b/docs/1.0.21-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.21-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/validatebound/index.html b/docs/1.0.21-alpha/api/validatebound/index.html index 7dc49103a9..0a167cb1de 100644 --- a/docs/1.0.21-alpha/api/validatebound/index.html +++ b/docs/1.0.21-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.21-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/validatedivisor/index.html b/docs/1.0.21-alpha/api/validatedivisor/index.html index b525319433..8e9f80911d 100644 --- a/docs/1.0.21-alpha/api/validatedivisor/index.html +++ b/docs/1.0.21-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.21-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/validationscope/index.html b/docs/1.0.21-alpha/api/validationscope/index.html index d17abb156b..5eb12a09f9 100644 --- a/docs/1.0.21-alpha/api/validationscope/index.html +++ b/docs/1.0.21-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.21-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/valueof/index.html b/docs/1.0.21-alpha/api/valueof/index.html index 1d379824ea..d9bf5807a6 100644 --- a/docs/1.0.21-alpha/api/valueof/index.html +++ b/docs/1.0.21-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.21-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/index.html b/docs/1.0.21-alpha/index.html index f810b22501..fcc278ff5d 100644 --- a/docs/1.0.21-alpha/index.html +++ b/docs/1.0.21-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.21-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/scopes/index.html b/docs/1.0.21-alpha/scopes/index.html index 4b0e792002..84790e2af3 100644 --- a/docs/1.0.21-alpha/scopes/index.html +++ b/docs/1.0.21-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.21-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/ark/index.html b/docs/1.0.22-alpha/api/ark/index.html index 209b3f119b..f3e6d51375 100644 --- a/docs/1.0.22-alpha/api/ark/index.html +++ b/docs/1.0.22-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.22-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/arkscope/index.html b/docs/1.0.22-alpha/api/arkscope/index.html index 46972c5084..5e4a82fafd 100644 --- a/docs/1.0.22-alpha/api/arkscope/index.html +++ b/docs/1.0.22-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.22-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/arrayof/index.html b/docs/1.0.22-alpha/api/arrayof/index.html index 8d2329bdac..ae80854c6f 100644 --- a/docs/1.0.22-alpha/api/arrayof/index.html +++ b/docs/1.0.22-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.22-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/index.html b/docs/1.0.22-alpha/api/index.html index d4a552eccd..c34e09739e 100644 --- a/docs/1.0.22-alpha/api/index.html +++ b/docs/1.0.22-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.22-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/infer/index.html b/docs/1.0.22-alpha/api/infer/index.html index 814047262e..53be042f8e 100644 --- a/docs/1.0.22-alpha/api/infer/index.html +++ b/docs/1.0.22-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.22-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/instanceof/index.html b/docs/1.0.22-alpha/api/instanceof/index.html index a8adc53c73..af69d11297 100644 --- a/docs/1.0.22-alpha/api/instanceof/index.html +++ b/docs/1.0.22-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.22-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/intersection/index.html b/docs/1.0.22-alpha/api/intersection/index.html index 5a9b62cc2e..aa4da82f53 100644 --- a/docs/1.0.22-alpha/api/intersection/index.html +++ b/docs/1.0.22-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.22-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/jsobjectsscope/index.html b/docs/1.0.22-alpha/api/jsobjectsscope/index.html index a0ac84e443..32026d8052 100644 --- a/docs/1.0.22-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.22-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.22-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/keyof/index.html b/docs/1.0.22-alpha/api/keyof/index.html index d3513b325d..02c43e34ac 100644 --- a/docs/1.0.22-alpha/api/keyof/index.html +++ b/docs/1.0.22-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.22-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/keywords/index.html b/docs/1.0.22-alpha/api/keywords/index.html index 57d96c3d90..da6a1c266d 100644 --- a/docs/1.0.22-alpha/api/keywords/index.html +++ b/docs/1.0.22-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.22-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/morph/index.html b/docs/1.0.22-alpha/api/morph/index.html index c37a5f41c0..096f5b4bc2 100644 --- a/docs/1.0.22-alpha/api/morph/index.html +++ b/docs/1.0.22-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.22-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/narrow/index.html b/docs/1.0.22-alpha/api/narrow/index.html index 4f4d8e840c..b33e69a1e1 100644 --- a/docs/1.0.22-alpha/api/narrow/index.html +++ b/docs/1.0.22-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.22-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/operators/index.html b/docs/1.0.22-alpha/api/operators/index.html index 62e1a782f1..04dfa1555b 100644 --- a/docs/1.0.22-alpha/api/operators/index.html +++ b/docs/1.0.22-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.22-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/parseconfigtuple/index.html b/docs/1.0.22-alpha/api/parseconfigtuple/index.html index d385b122d9..99d1b63c10 100644 --- a/docs/1.0.22-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.22-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.22-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/problem/index.html b/docs/1.0.22-alpha/api/problem/index.html index 352e79b92c..b9cb382ff8 100644 --- a/docs/1.0.22-alpha/api/problem/index.html +++ b/docs/1.0.22-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.22-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/problems/index.html b/docs/1.0.22-alpha/api/problems/index.html index 1e5a144245..fc4e640c66 100644 --- a/docs/1.0.22-alpha/api/problems/index.html +++ b/docs/1.0.22-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.22-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/resolvednode/index.html b/docs/1.0.22-alpha/api/resolvednode/index.html index 69690703c0..4c9c54ad03 100644 --- a/docs/1.0.22-alpha/api/resolvednode/index.html +++ b/docs/1.0.22-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.22-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/scope/index.html b/docs/1.0.22-alpha/api/scope/index.html index 78e95ce983..8c0da4da44 100644 --- a/docs/1.0.22-alpha/api/scope/index.html +++ b/docs/1.0.22-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.22-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/space/index.html b/docs/1.0.22-alpha/api/space/index.html index f0a72a1db6..9be68a91d8 100644 --- a/docs/1.0.22-alpha/api/space/index.html +++ b/docs/1.0.22-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.22-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/tskeywordsscope/index.html b/docs/1.0.22-alpha/api/tskeywordsscope/index.html index 4e0856a892..2925faa5e0 100644 --- a/docs/1.0.22-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.22-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.22-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/type/index.html b/docs/1.0.22-alpha/api/type/index.html index 6cd73504d5..8ce4ae0a29 100644 --- a/docs/1.0.22-alpha/api/type/index.html +++ b/docs/1.0.22-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.22-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/union/index.html b/docs/1.0.22-alpha/api/union/index.html index ab7fa32f17..20728212e4 100644 --- a/docs/1.0.22-alpha/api/union/index.html +++ b/docs/1.0.22-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.22-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/validatebound/index.html b/docs/1.0.22-alpha/api/validatebound/index.html index 6b03eeeb57..2b1457cf34 100644 --- a/docs/1.0.22-alpha/api/validatebound/index.html +++ b/docs/1.0.22-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.22-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/validatedivisor/index.html b/docs/1.0.22-alpha/api/validatedivisor/index.html index e46e1f6868..5dbb8229b4 100644 --- a/docs/1.0.22-alpha/api/validatedivisor/index.html +++ b/docs/1.0.22-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.22-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/validationscope/index.html b/docs/1.0.22-alpha/api/validationscope/index.html index 5c37a8c359..d7642b5cbc 100644 --- a/docs/1.0.22-alpha/api/validationscope/index.html +++ b/docs/1.0.22-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.22-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/api/valueof/index.html b/docs/1.0.22-alpha/api/valueof/index.html index 3bbdc8652b..50c8cf824b 100644 --- a/docs/1.0.22-alpha/api/valueof/index.html +++ b/docs/1.0.22-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.22-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/index.html b/docs/1.0.22-alpha/index.html index 5963ab63d8..3f944a1353 100644 --- a/docs/1.0.22-alpha/index.html +++ b/docs/1.0.22-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.22-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.22-alpha/scopes/index.html b/docs/1.0.22-alpha/scopes/index.html index d55362e9c4..f04edb6ef9 100644 --- a/docs/1.0.22-alpha/scopes/index.html +++ b/docs/1.0.22-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.22-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/ark/index.html b/docs/1.0.23-alpha/api/ark/index.html index 96fa91eff7..ad45f0aad2 100644 --- a/docs/1.0.23-alpha/api/ark/index.html +++ b/docs/1.0.23-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.23-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/arkscope/index.html b/docs/1.0.23-alpha/api/arkscope/index.html index 9107f3e971..50fb109bcb 100644 --- a/docs/1.0.23-alpha/api/arkscope/index.html +++ b/docs/1.0.23-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.23-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/arrayof/index.html b/docs/1.0.23-alpha/api/arrayof/index.html index a0c49738fc..84d0ad7303 100644 --- a/docs/1.0.23-alpha/api/arrayof/index.html +++ b/docs/1.0.23-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.23-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/index.html b/docs/1.0.23-alpha/api/index.html index 9ac2a69d33..684d848c1b 100644 --- a/docs/1.0.23-alpha/api/index.html +++ b/docs/1.0.23-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.23-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/infer/index.html b/docs/1.0.23-alpha/api/infer/index.html index 13deb2aa33..2cf84d43a4 100644 --- a/docs/1.0.23-alpha/api/infer/index.html +++ b/docs/1.0.23-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.23-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/instanceof/index.html b/docs/1.0.23-alpha/api/instanceof/index.html index 4577d54e35..b4047fed21 100644 --- a/docs/1.0.23-alpha/api/instanceof/index.html +++ b/docs/1.0.23-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.23-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/intersection/index.html b/docs/1.0.23-alpha/api/intersection/index.html index dec48381ad..bfa13da694 100644 --- a/docs/1.0.23-alpha/api/intersection/index.html +++ b/docs/1.0.23-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.23-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/jsobjectsscope/index.html b/docs/1.0.23-alpha/api/jsobjectsscope/index.html index 671103d20f..aa6216116c 100644 --- a/docs/1.0.23-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.23-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.23-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/keyof/index.html b/docs/1.0.23-alpha/api/keyof/index.html index e622c8c365..6f75af3d48 100644 --- a/docs/1.0.23-alpha/api/keyof/index.html +++ b/docs/1.0.23-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.23-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/keywords/index.html b/docs/1.0.23-alpha/api/keywords/index.html index a01c06c2ca..0b7132f855 100644 --- a/docs/1.0.23-alpha/api/keywords/index.html +++ b/docs/1.0.23-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.23-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/morph/index.html b/docs/1.0.23-alpha/api/morph/index.html index 4967cf98c9..d69dca0eb3 100644 --- a/docs/1.0.23-alpha/api/morph/index.html +++ b/docs/1.0.23-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.23-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/narrow/index.html b/docs/1.0.23-alpha/api/narrow/index.html index d714899449..f60cc18c72 100644 --- a/docs/1.0.23-alpha/api/narrow/index.html +++ b/docs/1.0.23-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.23-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/operators/index.html b/docs/1.0.23-alpha/api/operators/index.html index c85c38b9d5..79ebd29629 100644 --- a/docs/1.0.23-alpha/api/operators/index.html +++ b/docs/1.0.23-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.23-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/parseconfigtuple/index.html b/docs/1.0.23-alpha/api/parseconfigtuple/index.html index 4a02c22265..ed16ef0a62 100644 --- a/docs/1.0.23-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.23-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.23-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/problem/index.html b/docs/1.0.23-alpha/api/problem/index.html index fb62745764..230358d165 100644 --- a/docs/1.0.23-alpha/api/problem/index.html +++ b/docs/1.0.23-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.23-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/problems/index.html b/docs/1.0.23-alpha/api/problems/index.html index a26d496c30..6f80d5f2d3 100644 --- a/docs/1.0.23-alpha/api/problems/index.html +++ b/docs/1.0.23-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.23-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/resolvednode/index.html b/docs/1.0.23-alpha/api/resolvednode/index.html index ebf8fcbad2..dbc86d4e82 100644 --- a/docs/1.0.23-alpha/api/resolvednode/index.html +++ b/docs/1.0.23-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.23-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/scope/index.html b/docs/1.0.23-alpha/api/scope/index.html index 09701e477b..16e01c8cef 100644 --- a/docs/1.0.23-alpha/api/scope/index.html +++ b/docs/1.0.23-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.23-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/space/index.html b/docs/1.0.23-alpha/api/space/index.html index cdefc8f3c7..a6fe676f32 100644 --- a/docs/1.0.23-alpha/api/space/index.html +++ b/docs/1.0.23-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.23-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/tskeywordsscope/index.html b/docs/1.0.23-alpha/api/tskeywordsscope/index.html index d1318ff844..73f4c8a503 100644 --- a/docs/1.0.23-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.23-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.23-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/type/index.html b/docs/1.0.23-alpha/api/type/index.html index daf4b8c5ad..b515b31185 100644 --- a/docs/1.0.23-alpha/api/type/index.html +++ b/docs/1.0.23-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.23-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/union/index.html b/docs/1.0.23-alpha/api/union/index.html index bc4ff28848..9dcef8053e 100644 --- a/docs/1.0.23-alpha/api/union/index.html +++ b/docs/1.0.23-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.23-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/validatebound/index.html b/docs/1.0.23-alpha/api/validatebound/index.html index 084e821326..0d041ed0ee 100644 --- a/docs/1.0.23-alpha/api/validatebound/index.html +++ b/docs/1.0.23-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.23-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/validatedivisor/index.html b/docs/1.0.23-alpha/api/validatedivisor/index.html index b7fb123775..2ce8a63f08 100644 --- a/docs/1.0.23-alpha/api/validatedivisor/index.html +++ b/docs/1.0.23-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.23-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/validationscope/index.html b/docs/1.0.23-alpha/api/validationscope/index.html index 2dddc2af16..07b6fbb9f7 100644 --- a/docs/1.0.23-alpha/api/validationscope/index.html +++ b/docs/1.0.23-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.23-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/api/valueof/index.html b/docs/1.0.23-alpha/api/valueof/index.html index 8939413fb5..54a8222011 100644 --- a/docs/1.0.23-alpha/api/valueof/index.html +++ b/docs/1.0.23-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.23-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/index.html b/docs/1.0.23-alpha/index.html index 72ee26d78f..e36a7dcc6e 100644 --- a/docs/1.0.23-alpha/index.html +++ b/docs/1.0.23-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.23-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.23-alpha/scopes/index.html b/docs/1.0.23-alpha/scopes/index.html index 784290a1c8..031ea8cf53 100644 --- a/docs/1.0.23-alpha/scopes/index.html +++ b/docs/1.0.23-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.23-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/ark/index.html b/docs/1.0.24-alpha/api/ark/index.html index 9e8040d513..027901dc7d 100644 --- a/docs/1.0.24-alpha/api/ark/index.html +++ b/docs/1.0.24-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.24-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/arkscope/index.html b/docs/1.0.24-alpha/api/arkscope/index.html index bbe915809f..5368a8f3fb 100644 --- a/docs/1.0.24-alpha/api/arkscope/index.html +++ b/docs/1.0.24-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.24-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/arrayof/index.html b/docs/1.0.24-alpha/api/arrayof/index.html index 79ac06efb3..f59de50223 100644 --- a/docs/1.0.24-alpha/api/arrayof/index.html +++ b/docs/1.0.24-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.24-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/index.html b/docs/1.0.24-alpha/api/index.html index 0e73441c05..f5cf9f2797 100644 --- a/docs/1.0.24-alpha/api/index.html +++ b/docs/1.0.24-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.24-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/infer/index.html b/docs/1.0.24-alpha/api/infer/index.html index e428de9fb3..1d4cdc8f1d 100644 --- a/docs/1.0.24-alpha/api/infer/index.html +++ b/docs/1.0.24-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.24-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/inferdefinition/index.html b/docs/1.0.24-alpha/api/inferdefinition/index.html index d7dd2f0b97..874ef68691 100644 --- a/docs/1.0.24-alpha/api/inferdefinition/index.html +++ b/docs/1.0.24-alpha/api/inferdefinition/index.html @@ -6,14 +6,14 @@ inferDefinition | ArkType - - - + + +
Version: 1.0.24-alpha

inferDefinition

text

export type inferDefinition<def, $> = isAny<def> extends true
? never
: def extends Infer<infer t> | InferredThunk<infer t>
? t
: def extends string
? inferString<def, $>
: def extends List
? inferTuple<def, $>
: def extends RegExp
? string
: def extends Dict
? inferRecord<def, $>
: never
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/instanceof/index.html b/docs/1.0.24-alpha/api/instanceof/index.html index f1575e6786..4d15b4f6c7 100644 --- a/docs/1.0.24-alpha/api/instanceof/index.html +++ b/docs/1.0.24-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.24-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/intersection/index.html b/docs/1.0.24-alpha/api/intersection/index.html index 7c00c4d5c2..78b34fdb58 100644 --- a/docs/1.0.24-alpha/api/intersection/index.html +++ b/docs/1.0.24-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.24-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/jsobjectsscope/index.html b/docs/1.0.24-alpha/api/jsobjectsscope/index.html index 1497b34afc..b43aee35c5 100644 --- a/docs/1.0.24-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.24-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.24-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/keyof/index.html b/docs/1.0.24-alpha/api/keyof/index.html index 000b7b0741..bf1c6619b1 100644 --- a/docs/1.0.24-alpha/api/keyof/index.html +++ b/docs/1.0.24-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.24-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/keywords/index.html b/docs/1.0.24-alpha/api/keywords/index.html index e975ca5966..ec1c1b25cd 100644 --- a/docs/1.0.24-alpha/api/keywords/index.html +++ b/docs/1.0.24-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.24-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/morph/index.html b/docs/1.0.24-alpha/api/morph/index.html index d56ba72eb8..e6c716c180 100644 --- a/docs/1.0.24-alpha/api/morph/index.html +++ b/docs/1.0.24-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.24-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/narrow/index.html b/docs/1.0.24-alpha/api/narrow/index.html index 37f8643b00..7a452bf4cd 100644 --- a/docs/1.0.24-alpha/api/narrow/index.html +++ b/docs/1.0.24-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.24-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/operators/index.html b/docs/1.0.24-alpha/api/operators/index.html index 11857424bf..90a7525978 100644 --- a/docs/1.0.24-alpha/api/operators/index.html +++ b/docs/1.0.24-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.24-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/parseconfigtuple/index.html b/docs/1.0.24-alpha/api/parseconfigtuple/index.html index 480cb5e030..d3af0cb589 100644 --- a/docs/1.0.24-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.24-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.24-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/precompileddefaults/index.html b/docs/1.0.24-alpha/api/precompileddefaults/index.html index 3a68b8a876..b96ff4cff5 100644 --- a/docs/1.0.24-alpha/api/precompileddefaults/index.html +++ b/docs/1.0.24-alpha/api/precompileddefaults/index.html @@ -6,14 +6,14 @@ PrecompiledDefaults | ArkType - - - + + +
Version: 1.0.24-alpha

PrecompiledDefaults

text

export type PrecompiledDefaults = {
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
integer: number
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
semver: string
json: (In: string) => unknown
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/problem/index.html b/docs/1.0.24-alpha/api/problem/index.html index 69d3a5eb9e..ae3305fbf1 100644 --- a/docs/1.0.24-alpha/api/problem/index.html +++ b/docs/1.0.24-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.24-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/problems/index.html b/docs/1.0.24-alpha/api/problems/index.html index dbfbb41622..7387ce4e3e 100644 --- a/docs/1.0.24-alpha/api/problems/index.html +++ b/docs/1.0.24-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.24-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/resolvednode/index.html b/docs/1.0.24-alpha/api/resolvednode/index.html index 6922f33848..b4a93ee211 100644 --- a/docs/1.0.24-alpha/api/resolvednode/index.html +++ b/docs/1.0.24-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.24-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/scope/index.html b/docs/1.0.24-alpha/api/scope/index.html index 1216012c82..8821818b97 100644 --- a/docs/1.0.24-alpha/api/scope/index.html +++ b/docs/1.0.24-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.24-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/space/index.html b/docs/1.0.24-alpha/api/space/index.html index f6fcd5f126..cdff1b779a 100644 --- a/docs/1.0.24-alpha/api/space/index.html +++ b/docs/1.0.24-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.24-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/tskeywordsscope/index.html b/docs/1.0.24-alpha/api/tskeywordsscope/index.html index 12606489df..35d0809046 100644 --- a/docs/1.0.24-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.24-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.24-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/type/index.html b/docs/1.0.24-alpha/api/type/index.html index 6ffd4b7896..cf6d1d6560 100644 --- a/docs/1.0.24-alpha/api/type/index.html +++ b/docs/1.0.24-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.24-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/union/index.html b/docs/1.0.24-alpha/api/union/index.html index a649aaf455..d704f3d3b1 100644 --- a/docs/1.0.24-alpha/api/union/index.html +++ b/docs/1.0.24-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.24-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/validatebound/index.html b/docs/1.0.24-alpha/api/validatebound/index.html index 6b3c151888..8c5a79e485 100644 --- a/docs/1.0.24-alpha/api/validatebound/index.html +++ b/docs/1.0.24-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.24-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/validatedefinition/index.html b/docs/1.0.24-alpha/api/validatedefinition/index.html index 332f066b1e..d5a66190c4 100644 --- a/docs/1.0.24-alpha/api/validatedefinition/index.html +++ b/docs/1.0.24-alpha/api/validatedefinition/index.html @@ -6,14 +6,14 @@ validateDefinition | ArkType - - - + + +
Version: 1.0.24-alpha

validateDefinition

text

export type validateDefinition<def, $> = [def] extends [(...args: any[]) => any]
? def
: def extends Terminal
? def
: def extends string
? validateString<def, $>
: def extends TupleExpression
? validateTupleExpression<def, $>
: def extends BadDefinitionType
? writeBadDefinitionTypeMessage<
objectKindOf<def> extends string ? objectKindOf<def> : domainOf<def>
>
: isUnknown<def> extends true
? stringKeyOf<$>
: evaluate<{
[k in keyof def]: validateDefinition<def[k], $>
}>
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/validatedivisor/index.html b/docs/1.0.24-alpha/api/validatedivisor/index.html index d305b78d3c..7e883b620b 100644 --- a/docs/1.0.24-alpha/api/validatedivisor/index.html +++ b/docs/1.0.24-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.24-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/validationscope/index.html b/docs/1.0.24-alpha/api/validationscope/index.html index fdaf7a0d50..24f2e649d7 100644 --- a/docs/1.0.24-alpha/api/validationscope/index.html +++ b/docs/1.0.24-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.24-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/api/valueof/index.html b/docs/1.0.24-alpha/api/valueof/index.html index 0068f2016d..7925523165 100644 --- a/docs/1.0.24-alpha/api/valueof/index.html +++ b/docs/1.0.24-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.24-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/index.html b/docs/1.0.24-alpha/index.html index e65767d7a1..13d5e6e0d9 100644 --- a/docs/1.0.24-alpha/index.html +++ b/docs/1.0.24-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.24-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.24-alpha/scopes/index.html b/docs/1.0.24-alpha/scopes/index.html index fb6f6d23ac..5c933e277b 100644 --- a/docs/1.0.24-alpha/scopes/index.html +++ b/docs/1.0.24-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.24-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/ark/index.html b/docs/1.0.25-alpha/api/ark/index.html index e909b0dc66..a348c2ee54 100644 --- a/docs/1.0.25-alpha/api/ark/index.html +++ b/docs/1.0.25-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.25-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/arkscope/index.html b/docs/1.0.25-alpha/api/arkscope/index.html index bea9233a15..cb4c63d540 100644 --- a/docs/1.0.25-alpha/api/arkscope/index.html +++ b/docs/1.0.25-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.25-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/arrayof/index.html b/docs/1.0.25-alpha/api/arrayof/index.html index 8156f0dc74..fd2d157516 100644 --- a/docs/1.0.25-alpha/api/arrayof/index.html +++ b/docs/1.0.25-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.25-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/index.html b/docs/1.0.25-alpha/api/index.html index a645789775..15261fb2ad 100644 --- a/docs/1.0.25-alpha/api/index.html +++ b/docs/1.0.25-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.25-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/infer/index.html b/docs/1.0.25-alpha/api/infer/index.html index 9360b620f3..4a4fade40f 100644 --- a/docs/1.0.25-alpha/api/infer/index.html +++ b/docs/1.0.25-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.25-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/inferdefinition/index.html b/docs/1.0.25-alpha/api/inferdefinition/index.html index 225eb1f733..507d19cdcb 100644 --- a/docs/1.0.25-alpha/api/inferdefinition/index.html +++ b/docs/1.0.25-alpha/api/inferdefinition/index.html @@ -6,14 +6,14 @@ inferDefinition | ArkType - - - + + +
Version: 1.0.25-alpha

inferDefinition

text

export type inferDefinition<def, $> = isAny<def> extends true
? never
: def extends Infer<infer t> | InferredThunk<infer t>
? t
: def extends string
? inferString<def, $>
: def extends List
? inferTuple<def, $>
: def extends RegExp
? string
: def extends Dict
? inferRecord<def, $>
: never
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/instanceof/index.html b/docs/1.0.25-alpha/api/instanceof/index.html index 75cb3e898a..4e4ee31b7c 100644 --- a/docs/1.0.25-alpha/api/instanceof/index.html +++ b/docs/1.0.25-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.25-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/intersection/index.html b/docs/1.0.25-alpha/api/intersection/index.html index 292604adb5..4320171dd5 100644 --- a/docs/1.0.25-alpha/api/intersection/index.html +++ b/docs/1.0.25-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.25-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/jsobjectsscope/index.html b/docs/1.0.25-alpha/api/jsobjectsscope/index.html index edeb2a949c..1bee5d0365 100644 --- a/docs/1.0.25-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.25-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.25-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/keyof/index.html b/docs/1.0.25-alpha/api/keyof/index.html index b3e93a3cb3..76c7468fd1 100644 --- a/docs/1.0.25-alpha/api/keyof/index.html +++ b/docs/1.0.25-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.25-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/keywords/index.html b/docs/1.0.25-alpha/api/keywords/index.html index 98eb24cea6..09977a8786 100644 --- a/docs/1.0.25-alpha/api/keywords/index.html +++ b/docs/1.0.25-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.25-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/morph/index.html b/docs/1.0.25-alpha/api/morph/index.html index 3693f1996e..43f57fbffd 100644 --- a/docs/1.0.25-alpha/api/morph/index.html +++ b/docs/1.0.25-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.25-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/narrow/index.html b/docs/1.0.25-alpha/api/narrow/index.html index 20653cc3c6..9e96df51de 100644 --- a/docs/1.0.25-alpha/api/narrow/index.html +++ b/docs/1.0.25-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.25-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/operators/index.html b/docs/1.0.25-alpha/api/operators/index.html index 5fc7dab6b3..350ea8066e 100644 --- a/docs/1.0.25-alpha/api/operators/index.html +++ b/docs/1.0.25-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.25-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/parseconfigtuple/index.html b/docs/1.0.25-alpha/api/parseconfigtuple/index.html index 95699cba60..c24fcf1d0f 100644 --- a/docs/1.0.25-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.25-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.25-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/precompileddefaults/index.html b/docs/1.0.25-alpha/api/precompileddefaults/index.html index 3d25940c43..f84a80c278 100644 --- a/docs/1.0.25-alpha/api/precompileddefaults/index.html +++ b/docs/1.0.25-alpha/api/precompileddefaults/index.html @@ -6,14 +6,14 @@ PrecompiledDefaults | ArkType - - - + + +
Version: 1.0.25-alpha

PrecompiledDefaults

text

export type PrecompiledDefaults = {
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
integer: number
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
semver: string
json: (In: string) => unknown
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/problem/index.html b/docs/1.0.25-alpha/api/problem/index.html index aeee1e68ac..4deb7545fb 100644 --- a/docs/1.0.25-alpha/api/problem/index.html +++ b/docs/1.0.25-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.25-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/problems/index.html b/docs/1.0.25-alpha/api/problems/index.html index a30d736f8a..b77e1e6b86 100644 --- a/docs/1.0.25-alpha/api/problems/index.html +++ b/docs/1.0.25-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.25-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/resolvednode/index.html b/docs/1.0.25-alpha/api/resolvednode/index.html index 9b63d5ff84..2e8edce859 100644 --- a/docs/1.0.25-alpha/api/resolvednode/index.html +++ b/docs/1.0.25-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.25-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/scope/index.html b/docs/1.0.25-alpha/api/scope/index.html index 9f40ea5d24..5d08077ba4 100644 --- a/docs/1.0.25-alpha/api/scope/index.html +++ b/docs/1.0.25-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.25-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/space/index.html b/docs/1.0.25-alpha/api/space/index.html index 6f879f1fcf..5de8133b87 100644 --- a/docs/1.0.25-alpha/api/space/index.html +++ b/docs/1.0.25-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.25-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/tskeywordsscope/index.html b/docs/1.0.25-alpha/api/tskeywordsscope/index.html index f0249bba07..6e3a479e14 100644 --- a/docs/1.0.25-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.25-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.25-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/type/index.html b/docs/1.0.25-alpha/api/type/index.html index baf3e9dda0..f45be1ecf4 100644 --- a/docs/1.0.25-alpha/api/type/index.html +++ b/docs/1.0.25-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.25-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/union/index.html b/docs/1.0.25-alpha/api/union/index.html index de39232c99..7bc157fe21 100644 --- a/docs/1.0.25-alpha/api/union/index.html +++ b/docs/1.0.25-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.25-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/validatebound/index.html b/docs/1.0.25-alpha/api/validatebound/index.html index 7d7dc282f7..459c8aba26 100644 --- a/docs/1.0.25-alpha/api/validatebound/index.html +++ b/docs/1.0.25-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.25-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/validatedefinition/index.html b/docs/1.0.25-alpha/api/validatedefinition/index.html index 1ff147460d..7c81ae175e 100644 --- a/docs/1.0.25-alpha/api/validatedefinition/index.html +++ b/docs/1.0.25-alpha/api/validatedefinition/index.html @@ -6,14 +6,14 @@ validateDefinition | ArkType - - - + + +
Version: 1.0.25-alpha

validateDefinition

text

export type validateDefinition<def, $> = [def] extends [(...args: any[]) => any]
? def
: def extends Terminal
? def
: def extends string
? validateString<def, $>
: def extends TupleExpression
? validateTupleExpression<def, $>
: def extends BadDefinitionType
? writeBadDefinitionTypeMessage<
objectKindOf<def> extends string ? objectKindOf<def> : domainOf<def>
>
: isUnknown<def> extends true
? stringKeyOf<$>
: evaluate<{
[k in keyof def]: validateDefinition<def[k], $>
}>
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/validatedivisor/index.html b/docs/1.0.25-alpha/api/validatedivisor/index.html index 55af77f228..0c558434fa 100644 --- a/docs/1.0.25-alpha/api/validatedivisor/index.html +++ b/docs/1.0.25-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.25-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/validationscope/index.html b/docs/1.0.25-alpha/api/validationscope/index.html index 9562bde983..dec4bea741 100644 --- a/docs/1.0.25-alpha/api/validationscope/index.html +++ b/docs/1.0.25-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.25-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/api/valueof/index.html b/docs/1.0.25-alpha/api/valueof/index.html index 7fd94364ad..572285fe81 100644 --- a/docs/1.0.25-alpha/api/valueof/index.html +++ b/docs/1.0.25-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.25-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/index.html b/docs/1.0.25-alpha/index.html index a76b2221eb..8c92cb085b 100644 --- a/docs/1.0.25-alpha/index.html +++ b/docs/1.0.25-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.25-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.25-alpha/scopes/index.html b/docs/1.0.25-alpha/scopes/index.html index 93095ba394..bfc6f82d2a 100644 --- a/docs/1.0.25-alpha/scopes/index.html +++ b/docs/1.0.25-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.25-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/ark/index.html b/docs/1.0.26-alpha/api/ark/index.html index 89ca2425d6..2c63b0fc81 100644 --- a/docs/1.0.26-alpha/api/ark/index.html +++ b/docs/1.0.26-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.26-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/arkscope/index.html b/docs/1.0.26-alpha/api/arkscope/index.html index e9bcf06895..de4eb38a76 100644 --- a/docs/1.0.26-alpha/api/arkscope/index.html +++ b/docs/1.0.26-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.26-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/arrayof/index.html b/docs/1.0.26-alpha/api/arrayof/index.html index b3be296bef..1f7ca79a41 100644 --- a/docs/1.0.26-alpha/api/arrayof/index.html +++ b/docs/1.0.26-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.26-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/index.html b/docs/1.0.26-alpha/api/index.html index e85a748819..aba9cab7b4 100644 --- a/docs/1.0.26-alpha/api/index.html +++ b/docs/1.0.26-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.26-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/infer/index.html b/docs/1.0.26-alpha/api/infer/index.html index 9a9036b490..a611fbaadf 100644 --- a/docs/1.0.26-alpha/api/infer/index.html +++ b/docs/1.0.26-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.26-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/inferdefinition/index.html b/docs/1.0.26-alpha/api/inferdefinition/index.html index 17f42d7130..8170945e78 100644 --- a/docs/1.0.26-alpha/api/inferdefinition/index.html +++ b/docs/1.0.26-alpha/api/inferdefinition/index.html @@ -6,14 +6,14 @@ inferDefinition | ArkType - - - + + +
Version: 1.0.26-alpha

inferDefinition

text

export type inferDefinition<def, $> = isAny<def> extends true
? never
: def extends Infer<infer t> | InferredThunk<infer t>
? t
: def extends string
? inferString<def, $>
: def extends List
? inferTuple<def, $>
: def extends RegExp
? string
: def extends Dict
? inferRecord<def, $>
: never
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/instanceof/index.html b/docs/1.0.26-alpha/api/instanceof/index.html index aa429a9952..450cd1af95 100644 --- a/docs/1.0.26-alpha/api/instanceof/index.html +++ b/docs/1.0.26-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.26-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/intersection/index.html b/docs/1.0.26-alpha/api/intersection/index.html index 970a1ee5af..bbb68172ef 100644 --- a/docs/1.0.26-alpha/api/intersection/index.html +++ b/docs/1.0.26-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.26-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/jsobjectsscope/index.html b/docs/1.0.26-alpha/api/jsobjectsscope/index.html index db815595cd..b4c2fbadc6 100644 --- a/docs/1.0.26-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.26-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.26-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/keyof/index.html b/docs/1.0.26-alpha/api/keyof/index.html index db46796d19..7abb87ec25 100644 --- a/docs/1.0.26-alpha/api/keyof/index.html +++ b/docs/1.0.26-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.26-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/keywords/index.html b/docs/1.0.26-alpha/api/keywords/index.html index ec4da9db42..1af695d90c 100644 --- a/docs/1.0.26-alpha/api/keywords/index.html +++ b/docs/1.0.26-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.26-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/morph/index.html b/docs/1.0.26-alpha/api/morph/index.html index 65d4218469..80025252d0 100644 --- a/docs/1.0.26-alpha/api/morph/index.html +++ b/docs/1.0.26-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.26-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/narrow/index.html b/docs/1.0.26-alpha/api/narrow/index.html index b43014fca8..c458b52cf6 100644 --- a/docs/1.0.26-alpha/api/narrow/index.html +++ b/docs/1.0.26-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.26-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/operators/index.html b/docs/1.0.26-alpha/api/operators/index.html index 344f3aef26..9334b9cba6 100644 --- a/docs/1.0.26-alpha/api/operators/index.html +++ b/docs/1.0.26-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.26-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/parseconfigtuple/index.html b/docs/1.0.26-alpha/api/parseconfigtuple/index.html index 01a33ddb98..427731a4f3 100644 --- a/docs/1.0.26-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.26-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.26-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/precompileddefaults/index.html b/docs/1.0.26-alpha/api/precompileddefaults/index.html index 3db08bf33d..0004503d58 100644 --- a/docs/1.0.26-alpha/api/precompileddefaults/index.html +++ b/docs/1.0.26-alpha/api/precompileddefaults/index.html @@ -6,14 +6,14 @@ PrecompiledDefaults | ArkType - - - + + +
Version: 1.0.26-alpha

PrecompiledDefaults

text

export type PrecompiledDefaults = {
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
integer: number
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
semver: string
json: (In: string) => unknown
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/problem/index.html b/docs/1.0.26-alpha/api/problem/index.html index c41f38125f..037e31a57b 100644 --- a/docs/1.0.26-alpha/api/problem/index.html +++ b/docs/1.0.26-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.26-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/problems/index.html b/docs/1.0.26-alpha/api/problems/index.html index e967ec7dd8..4c91641a74 100644 --- a/docs/1.0.26-alpha/api/problems/index.html +++ b/docs/1.0.26-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.26-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/resolvednode/index.html b/docs/1.0.26-alpha/api/resolvednode/index.html index 0be6537518..91ef0a604f 100644 --- a/docs/1.0.26-alpha/api/resolvednode/index.html +++ b/docs/1.0.26-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.26-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/scope/index.html b/docs/1.0.26-alpha/api/scope/index.html index 90e042c9d6..c0645e5a11 100644 --- a/docs/1.0.26-alpha/api/scope/index.html +++ b/docs/1.0.26-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.26-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/space/index.html b/docs/1.0.26-alpha/api/space/index.html index 3d57a82a7e..8ac85c9b0d 100644 --- a/docs/1.0.26-alpha/api/space/index.html +++ b/docs/1.0.26-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.26-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/tskeywordsscope/index.html b/docs/1.0.26-alpha/api/tskeywordsscope/index.html index 4ae763b08c..d147979307 100644 --- a/docs/1.0.26-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.26-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.26-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/type/index.html b/docs/1.0.26-alpha/api/type/index.html index cd2705fa0a..5bf77daf4c 100644 --- a/docs/1.0.26-alpha/api/type/index.html +++ b/docs/1.0.26-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.26-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/union/index.html b/docs/1.0.26-alpha/api/union/index.html index bbb2ca1095..19c4201cb6 100644 --- a/docs/1.0.26-alpha/api/union/index.html +++ b/docs/1.0.26-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.26-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/validatebound/index.html b/docs/1.0.26-alpha/api/validatebound/index.html index fe4c8141a4..07e5d71eba 100644 --- a/docs/1.0.26-alpha/api/validatebound/index.html +++ b/docs/1.0.26-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.26-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/validatedefinition/index.html b/docs/1.0.26-alpha/api/validatedefinition/index.html index 01f575b8d0..70ce6403a1 100644 --- a/docs/1.0.26-alpha/api/validatedefinition/index.html +++ b/docs/1.0.26-alpha/api/validatedefinition/index.html @@ -6,14 +6,14 @@ validateDefinition | ArkType - - - + + +
Version: 1.0.26-alpha

validateDefinition

text

export type validateDefinition<def, $> = [def] extends [(...args: any[]) => any]
? def
: def extends Terminal
? def
: def extends string
? validateString<def, $>
: def extends TupleExpression
? validateTupleExpression<def, $>
: def extends BadDefinitionType
? writeBadDefinitionTypeMessage<
objectKindOf<def> extends string ? objectKindOf<def> : domainOf<def>
>
: isUnknown<def> extends true
? stringKeyOf<$>
: evaluate<{
[k in keyof def]: validateDefinition<def[k], $>
}>
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/validatedivisor/index.html b/docs/1.0.26-alpha/api/validatedivisor/index.html index 2063e63f87..02d69b2608 100644 --- a/docs/1.0.26-alpha/api/validatedivisor/index.html +++ b/docs/1.0.26-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.26-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/validationscope/index.html b/docs/1.0.26-alpha/api/validationscope/index.html index ca95f629b7..a4b413ce93 100644 --- a/docs/1.0.26-alpha/api/validationscope/index.html +++ b/docs/1.0.26-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.26-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/api/valueof/index.html b/docs/1.0.26-alpha/api/valueof/index.html index a87186e4f7..76aade561f 100644 --- a/docs/1.0.26-alpha/api/valueof/index.html +++ b/docs/1.0.26-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.26-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/index.html b/docs/1.0.26-alpha/index.html index 45c3f53bab..f4c485f442 100644 --- a/docs/1.0.26-alpha/index.html +++ b/docs/1.0.26-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.26-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.26-alpha/scopes/index.html b/docs/1.0.26-alpha/scopes/index.html index 2ec1e44479..8ede36e471 100644 --- a/docs/1.0.26-alpha/scopes/index.html +++ b/docs/1.0.26-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.26-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/ark/index.html b/docs/1.0.27-alpha/api/ark/index.html index 1521495191..b603367f83 100644 --- a/docs/1.0.27-alpha/api/ark/index.html +++ b/docs/1.0.27-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.27-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/arkscope/index.html b/docs/1.0.27-alpha/api/arkscope/index.html index 52d8034d6b..33cf42e4b5 100644 --- a/docs/1.0.27-alpha/api/arkscope/index.html +++ b/docs/1.0.27-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.27-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/arrayof/index.html b/docs/1.0.27-alpha/api/arrayof/index.html index da70bef447..45ec2fb9c9 100644 --- a/docs/1.0.27-alpha/api/arrayof/index.html +++ b/docs/1.0.27-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.27-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/index.html b/docs/1.0.27-alpha/api/index.html index 205919740d..b44bbf5882 100644 --- a/docs/1.0.27-alpha/api/index.html +++ b/docs/1.0.27-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.27-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/infer/index.html b/docs/1.0.27-alpha/api/infer/index.html index 58f7479fe5..57370d0410 100644 --- a/docs/1.0.27-alpha/api/infer/index.html +++ b/docs/1.0.27-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.27-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/inferdefinition/index.html b/docs/1.0.27-alpha/api/inferdefinition/index.html index bf8b4eb4d4..d1f6851b4a 100644 --- a/docs/1.0.27-alpha/api/inferdefinition/index.html +++ b/docs/1.0.27-alpha/api/inferdefinition/index.html @@ -6,14 +6,14 @@ inferDefinition | ArkType - - - + + +
Version: 1.0.27-alpha

inferDefinition

text

export type inferDefinition<def, $> = isAny<def> extends true
? never
: def extends Infer<infer t> | InferredThunk<infer t>
? t
: def extends string
? inferString<def, $>
: def extends List
? inferTuple<def, $>
: def extends RegExp
? string
: def extends Dict
? inferRecord<def, $>
: never
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/instanceof/index.html b/docs/1.0.27-alpha/api/instanceof/index.html index fdfb3603bc..3a404d1c08 100644 --- a/docs/1.0.27-alpha/api/instanceof/index.html +++ b/docs/1.0.27-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.27-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/intersection/index.html b/docs/1.0.27-alpha/api/intersection/index.html index 6d88f64927..1db7d03b99 100644 --- a/docs/1.0.27-alpha/api/intersection/index.html +++ b/docs/1.0.27-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.27-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/jsobjectsscope/index.html b/docs/1.0.27-alpha/api/jsobjectsscope/index.html index ac78c3aa8c..c3bba49985 100644 --- a/docs/1.0.27-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.27-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.27-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/keyof/index.html b/docs/1.0.27-alpha/api/keyof/index.html index 94582a95cf..fb898ca3f3 100644 --- a/docs/1.0.27-alpha/api/keyof/index.html +++ b/docs/1.0.27-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.27-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/keywords/index.html b/docs/1.0.27-alpha/api/keywords/index.html index e2cb714e05..f46770aa29 100644 --- a/docs/1.0.27-alpha/api/keywords/index.html +++ b/docs/1.0.27-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.27-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/morph/index.html b/docs/1.0.27-alpha/api/morph/index.html index f5038011dc..4bf6d1e947 100644 --- a/docs/1.0.27-alpha/api/morph/index.html +++ b/docs/1.0.27-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.27-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/narrow/index.html b/docs/1.0.27-alpha/api/narrow/index.html index 2f31bf5e0b..eb9d23cff1 100644 --- a/docs/1.0.27-alpha/api/narrow/index.html +++ b/docs/1.0.27-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.27-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/operators/index.html b/docs/1.0.27-alpha/api/operators/index.html index e02631e4f8..739c566273 100644 --- a/docs/1.0.27-alpha/api/operators/index.html +++ b/docs/1.0.27-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.27-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/parseconfigtuple/index.html b/docs/1.0.27-alpha/api/parseconfigtuple/index.html index 5674d966e5..eeec97bb27 100644 --- a/docs/1.0.27-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.27-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.27-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/precompileddefaults/index.html b/docs/1.0.27-alpha/api/precompileddefaults/index.html index fa9c71511c..a00a7287fe 100644 --- a/docs/1.0.27-alpha/api/precompileddefaults/index.html +++ b/docs/1.0.27-alpha/api/precompileddefaults/index.html @@ -6,14 +6,14 @@ PrecompiledDefaults | ArkType - - - + + +
Version: 1.0.27-alpha

PrecompiledDefaults

text

export type PrecompiledDefaults = {
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
integer: number
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
semver: string
json: (In: string) => unknown
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/problem/index.html b/docs/1.0.27-alpha/api/problem/index.html index ce3dfb4ca1..5aff34aa0c 100644 --- a/docs/1.0.27-alpha/api/problem/index.html +++ b/docs/1.0.27-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.27-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/problems/index.html b/docs/1.0.27-alpha/api/problems/index.html index fbcd717043..2393f2f426 100644 --- a/docs/1.0.27-alpha/api/problems/index.html +++ b/docs/1.0.27-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.27-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/resolvednode/index.html b/docs/1.0.27-alpha/api/resolvednode/index.html index 3f883a1f51..3d349366d2 100644 --- a/docs/1.0.27-alpha/api/resolvednode/index.html +++ b/docs/1.0.27-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.27-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/scope/index.html b/docs/1.0.27-alpha/api/scope/index.html index f39d839c42..881827e307 100644 --- a/docs/1.0.27-alpha/api/scope/index.html +++ b/docs/1.0.27-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.27-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/space/index.html b/docs/1.0.27-alpha/api/space/index.html index 8554bc5c84..33aae49c1b 100644 --- a/docs/1.0.27-alpha/api/space/index.html +++ b/docs/1.0.27-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.27-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/tskeywordsscope/index.html b/docs/1.0.27-alpha/api/tskeywordsscope/index.html index 4e47dad358..47971a082a 100644 --- a/docs/1.0.27-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.27-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.27-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/type/index.html b/docs/1.0.27-alpha/api/type/index.html index 561b3e9e3e..fe41a9411c 100644 --- a/docs/1.0.27-alpha/api/type/index.html +++ b/docs/1.0.27-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.27-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/union/index.html b/docs/1.0.27-alpha/api/union/index.html index 31d2aa4bbb..8b98f1c4b3 100644 --- a/docs/1.0.27-alpha/api/union/index.html +++ b/docs/1.0.27-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.27-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/validatebound/index.html b/docs/1.0.27-alpha/api/validatebound/index.html index c465ceca09..e9fa87643d 100644 --- a/docs/1.0.27-alpha/api/validatebound/index.html +++ b/docs/1.0.27-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.27-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/validatedefinition/index.html b/docs/1.0.27-alpha/api/validatedefinition/index.html index a0f5aab447..7eb0f37a42 100644 --- a/docs/1.0.27-alpha/api/validatedefinition/index.html +++ b/docs/1.0.27-alpha/api/validatedefinition/index.html @@ -6,14 +6,14 @@ validateDefinition | ArkType - - - + + +
Version: 1.0.27-alpha

validateDefinition

text

export type validateDefinition<def, $> = [def] extends [(...args: any[]) => any]
? def
: def extends Terminal
? def
: def extends string
? validateString<def, $>
: def extends TupleExpression
? validateTupleExpression<def, $>
: def extends BadDefinitionType
? writeBadDefinitionTypeMessage<
objectKindOf<def> extends string ? objectKindOf<def> : domainOf<def>
>
: isUnknown<def> extends true
? stringKeyOf<$>
: evaluate<{
[k in keyof def]: validateDefinition<def[k], $>
}>
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/validatedivisor/index.html b/docs/1.0.27-alpha/api/validatedivisor/index.html index fdc3534d69..0f80f97a2a 100644 --- a/docs/1.0.27-alpha/api/validatedivisor/index.html +++ b/docs/1.0.27-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.27-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/validationscope/index.html b/docs/1.0.27-alpha/api/validationscope/index.html index e3c1b3ee0c..c9c4af2394 100644 --- a/docs/1.0.27-alpha/api/validationscope/index.html +++ b/docs/1.0.27-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.27-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/api/valueof/index.html b/docs/1.0.27-alpha/api/valueof/index.html index 2ff253f169..1810b23d17 100644 --- a/docs/1.0.27-alpha/api/valueof/index.html +++ b/docs/1.0.27-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.27-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/index.html b/docs/1.0.27-alpha/index.html index d1aede05b2..5a8b0bb027 100644 --- a/docs/1.0.27-alpha/index.html +++ b/docs/1.0.27-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.27-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.27-alpha/scopes/index.html b/docs/1.0.27-alpha/scopes/index.html index 4d7d0daf24..654280c840 100644 --- a/docs/1.0.27-alpha/scopes/index.html +++ b/docs/1.0.27-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.27-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/ark/index.html b/docs/1.0.28-alpha/api/ark/index.html index 8d63e833bb..29e8824a4d 100644 --- a/docs/1.0.28-alpha/api/ark/index.html +++ b/docs/1.0.28-alpha/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: 1.0.28-alpha

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/arkscope/index.html b/docs/1.0.28-alpha/api/arkscope/index.html index eb672b1552..73242ea928 100644 --- a/docs/1.0.28-alpha/api/arkscope/index.html +++ b/docs/1.0.28-alpha/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.28-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => Out<number>
parsedInteger: (In: string) => Out<number>
parsedDate: (In: string) => Out<Date>
semver: string
json: (In: string) => Out<unknown>
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/arrayof/index.html b/docs/1.0.28-alpha/api/arrayof/index.html index ca44d8be09..472238dd66 100644 --- a/docs/1.0.28-alpha/api/arrayof/index.html +++ b/docs/1.0.28-alpha/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.28-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/index.html b/docs/1.0.28-alpha/api/index.html index 7b6e1cc39b..437b4d153d 100644 --- a/docs/1.0.28-alpha/api/index.html +++ b/docs/1.0.28-alpha/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.28-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/infer/index.html b/docs/1.0.28-alpha/api/infer/index.html index 753b0a17d7..6a6ceb1f07 100644 --- a/docs/1.0.28-alpha/api/infer/index.html +++ b/docs/1.0.28-alpha/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: 1.0.28-alpha

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/inferdefinition/index.html b/docs/1.0.28-alpha/api/inferdefinition/index.html index b1d198bc69..ff1ba0d9de 100644 --- a/docs/1.0.28-alpha/api/inferdefinition/index.html +++ b/docs/1.0.28-alpha/api/inferdefinition/index.html @@ -6,14 +6,14 @@ inferDefinition | ArkType - - - + + +
Version: 1.0.28-alpha

inferDefinition

text

export type inferDefinition<def, $> = isAny<def> extends true
? never
: def extends Infer<infer t> | InferredThunk<infer t>
? t
: def extends string
? inferString<def, $>
: def extends List
? inferTuple<def, $>
: def extends RegExp
? string
: def extends Dict
? inferRecord<def, $>
: never
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/instanceof/index.html b/docs/1.0.28-alpha/api/instanceof/index.html index 19d777b5b1..b222b568ac 100644 --- a/docs/1.0.28-alpha/api/instanceof/index.html +++ b/docs/1.0.28-alpha/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.28-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/intersection/index.html b/docs/1.0.28-alpha/api/intersection/index.html index a5c59ce1cd..1f3bac36aa 100644 --- a/docs/1.0.28-alpha/api/intersection/index.html +++ b/docs/1.0.28-alpha/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.28-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/jsobjectsscope/index.html b/docs/1.0.28-alpha/api/jsobjectsscope/index.html index 7ca8202273..13a778a003 100644 --- a/docs/1.0.28-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.28-alpha/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.28-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/keyof/index.html b/docs/1.0.28-alpha/api/keyof/index.html index cd9bb45fe5..b608941b6f 100644 --- a/docs/1.0.28-alpha/api/keyof/index.html +++ b/docs/1.0.28-alpha/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.28-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/keywords/index.html b/docs/1.0.28-alpha/api/keywords/index.html index da7d126611..b15cccb01a 100644 --- a/docs/1.0.28-alpha/api/keywords/index.html +++ b/docs/1.0.28-alpha/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.28-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed numeric string
parsedInteger (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed integer string
parsedDate (In: string) => import("../../parse/ast/morph.js").Out<Date>a valid date
semver stringa valid semantic version
json (In: string) => import("../../parse/ast/morph.js").Out<unknown>a JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/morph/index.html b/docs/1.0.28-alpha/api/morph/index.html index bbc07e3d19..162c6aa5c0 100644 --- a/docs/1.0.28-alpha/api/morph/index.html +++ b/docs/1.0.28-alpha/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.28-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/narrow/index.html b/docs/1.0.28-alpha/api/narrow/index.html index 6e679cf553..54faebd637 100644 --- a/docs/1.0.28-alpha/api/narrow/index.html +++ b/docs/1.0.28-alpha/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.28-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/operators/index.html b/docs/1.0.28-alpha/api/operators/index.html index d969e21978..2c7e14d988 100644 --- a/docs/1.0.28-alpha/api/operators/index.html +++ b/docs/1.0.28-alpha/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.28-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/parseconfigtuple/index.html b/docs/1.0.28-alpha/api/parseconfigtuple/index.html index ab3264ceb2..21b0491732 100644 --- a/docs/1.0.28-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.28-alpha/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: 1.0.28-alpha

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/precompileddefaults/index.html b/docs/1.0.28-alpha/api/precompileddefaults/index.html index 5059a61550..842a5909b0 100644 --- a/docs/1.0.28-alpha/api/precompileddefaults/index.html +++ b/docs/1.0.28-alpha/api/precompileddefaults/index.html @@ -6,14 +6,14 @@ PrecompiledDefaults | ArkType - - - + + +
Version: 1.0.28-alpha

PrecompiledDefaults

text

export type PrecompiledDefaults = {
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
integer: number
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
semver: string
json: (In: string) => Out<unknown>
parsedNumber: (In: string) => Out<number>
parsedInteger: (In: string) => Out<number>
parsedDate: (In: string) => Out<Date>
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/problem/index.html b/docs/1.0.28-alpha/api/problem/index.html index 10a734c744..ae9a126cce 100644 --- a/docs/1.0.28-alpha/api/problem/index.html +++ b/docs/1.0.28-alpha/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.28-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/problems/index.html b/docs/1.0.28-alpha/api/problems/index.html index c229c0654d..307db6236c 100644 --- a/docs/1.0.28-alpha/api/problems/index.html +++ b/docs/1.0.28-alpha/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.28-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/resolvednode/index.html b/docs/1.0.28-alpha/api/resolvednode/index.html index d347337af2..1e3c60c35f 100644 --- a/docs/1.0.28-alpha/api/resolvednode/index.html +++ b/docs/1.0.28-alpha/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: 1.0.28-alpha

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/scope/index.html b/docs/1.0.28-alpha/api/scope/index.html index 092665726b..4fd214bcee 100644 --- a/docs/1.0.28-alpha/api/scope/index.html +++ b/docs/1.0.28-alpha/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.28-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/space/index.html b/docs/1.0.28-alpha/api/space/index.html index fc066ea7f5..fbedb6a86a 100644 --- a/docs/1.0.28-alpha/api/space/index.html +++ b/docs/1.0.28-alpha/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: 1.0.28-alpha

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/tskeywordsscope/index.html b/docs/1.0.28-alpha/api/tskeywordsscope/index.html index c7119ffd0a..58ff8c3f21 100644 --- a/docs/1.0.28-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.28-alpha/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.28-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/type/index.html b/docs/1.0.28-alpha/api/type/index.html index 8b007e37d7..116aefd563 100644 --- a/docs/1.0.28-alpha/api/type/index.html +++ b/docs/1.0.28-alpha/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.28-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/union/index.html b/docs/1.0.28-alpha/api/union/index.html index 603a37d24f..78f45cfbc8 100644 --- a/docs/1.0.28-alpha/api/union/index.html +++ b/docs/1.0.28-alpha/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.28-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/validatebound/index.html b/docs/1.0.28-alpha/api/validatebound/index.html index c38302ee98..44023c1797 100644 --- a/docs/1.0.28-alpha/api/validatebound/index.html +++ b/docs/1.0.28-alpha/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.28-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/validatedefinition/index.html b/docs/1.0.28-alpha/api/validatedefinition/index.html index 1fe8eefb86..d03312007a 100644 --- a/docs/1.0.28-alpha/api/validatedefinition/index.html +++ b/docs/1.0.28-alpha/api/validatedefinition/index.html @@ -6,14 +6,14 @@ validateDefinition | ArkType - - - + + +
Version: 1.0.28-alpha

validateDefinition

text

export type validateDefinition<def, $> = [def] extends [(...args: any[]) => any]
? def
: def extends Terminal
? def
: def extends string
? validateString<def, $>
: def extends TupleExpression
? validateTupleExpression<def, $>
: def extends BadDefinitionType
? writeBadDefinitionTypeMessage<
objectKindOf<def> extends string ? objectKindOf<def> : domainOf<def>
>
: isUnknown<def> extends true
? stringKeyOf<$>
: evaluate<{
[k in keyof def]: validateDefinition<def[k], $>
}>
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/validatedivisor/index.html b/docs/1.0.28-alpha/api/validatedivisor/index.html index 4c5ea0de46..6a00678b24 100644 --- a/docs/1.0.28-alpha/api/validatedivisor/index.html +++ b/docs/1.0.28-alpha/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: 1.0.28-alpha

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/validationscope/index.html b/docs/1.0.28-alpha/api/validationscope/index.html index 91d7e67bc7..2a21cdb753 100644 --- a/docs/1.0.28-alpha/api/validationscope/index.html +++ b/docs/1.0.28-alpha/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.28-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed numeric string
parsedInteger (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed integer string
parsedDate (In: string) => import("../../parse/ast/morph.js").Out<Date>a valid date
semver stringa valid semantic version
json (In: string) => import("../../parse/ast/morph.js").Out<unknown>a JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/api/valueof/index.html b/docs/1.0.28-alpha/api/valueof/index.html index 1ef0e54bd0..0d440f4174 100644 --- a/docs/1.0.28-alpha/api/valueof/index.html +++ b/docs/1.0.28-alpha/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.28-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/index.html b/docs/1.0.28-alpha/index.html index 16aa198d88..0feb17b91e 100644 --- a/docs/1.0.28-alpha/index.html +++ b/docs/1.0.28-alpha/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.28-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/1.0.28-alpha/scopes/index.html b/docs/1.0.28-alpha/scopes/index.html index 9209d3f25a..79d7a62924 100644 --- a/docs/1.0.28-alpha/scopes/index.html +++ b/docs/1.0.28-alpha/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.28-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/api/ark/index.html b/docs/api/ark/index.html index 43035dd107..4cb237afef 100644 --- a/docs/api/ark/index.html +++ b/docs/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + + - - + + \ No newline at end of file diff --git a/docs/api/arkscope/index.html b/docs/api/arkscope/index.html index 11abe2cb3b..64f1d05c65 100644 --- a/docs/api/arkscope/index.html +++ b/docs/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: 1.0.29-alpha

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => Out<number>
parsedInteger: (In: string) => Out<number>
parsedDate: (In: string) => Out<Date>
semver: string
json: (In: string) => Out<unknown>
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/api/arrayof/index.html b/docs/api/arrayof/index.html index 795ffdf3c5..21b216a94a 100644 --- a/docs/api/arrayof/index.html +++ b/docs/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: 1.0.29-alpha

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/api/index.html b/docs/api/index.html index 3c7ec984da..9e9464e04c 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: 1.0.29-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/api/infer/index.html b/docs/api/infer/index.html index f3ea84c9d6..727749f52c 100644 --- a/docs/api/infer/index.html +++ b/docs/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + + - - + + \ No newline at end of file diff --git a/docs/api/inferdefinition/index.html b/docs/api/inferdefinition/index.html index c2e3d3c14c..467d4139af 100644 --- a/docs/api/inferdefinition/index.html +++ b/docs/api/inferdefinition/index.html @@ -6,14 +6,14 @@ inferDefinition | ArkType - - - + + +
Version: 1.0.29-alpha

inferDefinition

text

export type inferDefinition<def, $> = isAny<def> extends true
? never
: def extends Infer<infer t> | InferredThunk<infer t>
? t
: def extends string
? inferString<def, $>
: def extends List
? inferTuple<def, $>
: def extends RegExp
? string
: def extends Dict
? inferRecord<def, $>
: never
- - + + \ No newline at end of file diff --git a/docs/api/instanceof/index.html b/docs/api/instanceof/index.html index 0acaf93f66..985caac5b3 100644 --- a/docs/api/instanceof/index.html +++ b/docs/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: 1.0.29-alpha

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/api/intersection/index.html b/docs/api/intersection/index.html index c6a2d90e75..4e4cf23408 100644 --- a/docs/api/intersection/index.html +++ b/docs/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: 1.0.29-alpha

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/api/jsobjectsscope/index.html b/docs/api/jsobjectsscope/index.html index 478158f9b2..34908acf3c 100644 --- a/docs/api/jsobjectsscope/index.html +++ b/docs/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: 1.0.29-alpha

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/api/keyof/index.html b/docs/api/keyof/index.html index 3f718654db..75716979fe 100644 --- a/docs/api/keyof/index.html +++ b/docs/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: 1.0.29-alpha

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/api/keywords/index.html b/docs/api/keywords/index.html index ba2413a435..f38db5f269 100644 --- a/docs/api/keywords/index.html +++ b/docs/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: 1.0.29-alpha

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed numeric string
parsedInteger (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed integer string
parsedDate (In: string) => import("../../parse/ast/morph.js").Out<Date>a valid date
semver stringa valid semantic version
json (In: string) => import("../../parse/ast/morph.js").Out<unknown>a JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/api/morph/index.html b/docs/api/morph/index.html index ac12c1f95c..230f394db8 100644 --- a/docs/api/morph/index.html +++ b/docs/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: 1.0.29-alpha

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/api/narrow/index.html b/docs/api/narrow/index.html index e6367391a8..cbdd15dfc5 100644 --- a/docs/api/narrow/index.html +++ b/docs/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: 1.0.29-alpha

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/api/operators/index.html b/docs/api/operators/index.html index 795a2d022e..cd8cc8187e 100644 --- a/docs/api/operators/index.html +++ b/docs/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: 1.0.29-alpha

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/api/parseconfigtuple/index.html b/docs/api/parseconfigtuple/index.html index 865a56791e..9597e1951f 100644 --- a/docs/api/parseconfigtuple/index.html +++ b/docs/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + + - - + + \ No newline at end of file diff --git a/docs/api/precompileddefaults/index.html b/docs/api/precompileddefaults/index.html index d242cffbe1..dd8a8651d6 100644 --- a/docs/api/precompileddefaults/index.html +++ b/docs/api/precompileddefaults/index.html @@ -6,14 +6,14 @@ PrecompiledDefaults | ArkType - - - + + +
Version: 1.0.29-alpha

PrecompiledDefaults

text

export type PrecompiledDefaults = {
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
integer: number
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
semver: string
json: (In: string) => Out<unknown>
parsedNumber: (In: string) => Out<number>
parsedInteger: (In: string) => Out<number>
parsedDate: (In: string) => Out<Date>
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
}
- - + + \ No newline at end of file diff --git a/docs/api/problem/index.html b/docs/api/problem/index.html index 2950d9b9e9..cb96198464 100644 --- a/docs/api/problem/index.html +++ b/docs/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: 1.0.29-alpha

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/api/problems/index.html b/docs/api/problems/index.html index 7ffc02ca46..623a76ff8c 100644 --- a/docs/api/problems/index.html +++ b/docs/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: 1.0.29-alpha

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/api/resolvednode/index.html b/docs/api/resolvednode/index.html index bfe3cd7433..a9028b858a 100644 --- a/docs/api/resolvednode/index.html +++ b/docs/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + + - - + + \ No newline at end of file diff --git a/docs/api/scope/index.html b/docs/api/scope/index.html index 6a9a6b537c..f205d0ddc1 100644 --- a/docs/api/scope/index.html +++ b/docs/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: 1.0.29-alpha

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: Cache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/api/space/index.html b/docs/api/space/index.html index 524ba0137c..5f78b29256 100644 --- a/docs/api/space/index.html +++ b/docs/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + + - - + + \ No newline at end of file diff --git a/docs/api/tskeywordsscope/index.html b/docs/api/tskeywordsscope/index.html index a9b6c5af23..96ffc37a3a 100644 --- a/docs/api/tskeywordsscope/index.html +++ b/docs/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: 1.0.29-alpha

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/api/type/index.html b/docs/api/type/index.html index 860cbf3690..f3c8250440 100644 --- a/docs/api/type/index.html +++ b/docs/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: 1.0.29-alpha

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/api/union/index.html b/docs/api/union/index.html index ad5e4b3030..87ea3f71e6 100644 --- a/docs/api/union/index.html +++ b/docs/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: 1.0.29-alpha

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/api/validatebound/index.html b/docs/api/validatebound/index.html index d467a724fb..d76a9016c9 100644 --- a/docs/api/validatebound/index.html +++ b/docs/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: 1.0.29-alpha

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/api/validatedefinition/index.html b/docs/api/validatedefinition/index.html index ea6c04724b..4057ae317c 100644 --- a/docs/api/validatedefinition/index.html +++ b/docs/api/validatedefinition/index.html @@ -6,14 +6,14 @@ validateDefinition | ArkType - - - + + +
Version: 1.0.29-alpha

validateDefinition

text

export type validateDefinition<def, $> = [def] extends [(...args: any[]) => any]
? def
: def extends Terminal
? def
: def extends string
? validateString<def, $>
: def extends TupleExpression
? validateTupleExpression<def, $>
: def extends BadDefinitionType
? writeBadDefinitionTypeMessage<
objectKindOf<def> extends string ? objectKindOf<def> : domainOf<def>
>
: isUnknown<def> extends true
? stringKeyOf<$>
: evaluate<{
[k in keyof def]: validateDefinition<def[k], $>
}>
- - + + \ No newline at end of file diff --git a/docs/api/validatedivisor/index.html b/docs/api/validatedivisor/index.html index 66c373112c..66cd9766b5 100644 --- a/docs/api/validatedivisor/index.html +++ b/docs/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + + - - + + \ No newline at end of file diff --git a/docs/api/validationscope/index.html b/docs/api/validationscope/index.html index 7add7ac767..6a7719afaa 100644 --- a/docs/api/validationscope/index.html +++ b/docs/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: 1.0.29-alpha

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed numeric string
parsedInteger (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed integer string
parsedDate (In: string) => import("../../parse/ast/morph.js").Out<Date>a valid date
semver stringa valid semantic version
json (In: string) => import("../../parse/ast/morph.js").Out<unknown>a JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/api/valueof/index.html b/docs/api/valueof/index.html index 33121bb672..d9896eb22b 100644 --- a/docs/api/valueof/index.html +++ b/docs/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: 1.0.29-alpha

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 0db5a0b071..c8235488bc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: 1.0.29-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript version 4.8 or greater.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/next/api/ark/index.html b/docs/next/api/ark/index.html index f11fa435cf..ed37c88b0f 100644 --- a/docs/next/api/ark/index.html +++ b/docs/next/api/ark/index.html @@ -6,14 +6,14 @@ ark | ArkType - - - + + +
Version: Next

ark

text

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/next/api/arkscope/index.html b/docs/next/api/arkscope/index.html index 8a83e1055b..20eb7a00f0 100644 --- a/docs/next/api/arkscope/index.html +++ b/docs/next/api/arkscope/index.html @@ -6,14 +6,14 @@ arkScope | ArkType - - - + + +
Version: Next

arkScope

text

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => Out<number>
parsedInteger: (In: string) => Out<number>
parsedDate: (In: string) => Out<Date>
semver: string
json: (In: string) => Out<unknown>
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/next/api/arrayof/index.html b/docs/next/api/arrayof/index.html index b607d3e992..6d3da554cc 100644 --- a/docs/next/api/arrayof/index.html +++ b/docs/next/api/arrayof/index.html @@ -6,14 +6,14 @@ arrayOf | ArkType - - - + + +
Version: Next

arrayOf

operator

string

  • "T[]"
  • const numberArray = type("number[]")

tuple

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/next/api/index.html b/docs/next/api/index.html index a310974971..c6f382cdcf 100644 --- a/docs/next/api/index.html +++ b/docs/next/api/index.html @@ -6,14 +6,14 @@ API | ArkType - - - + + +
Version: Next

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/next/api/infer/index.html b/docs/next/api/infer/index.html index 9f3a178cb3..77bbfba3ca 100644 --- a/docs/next/api/infer/index.html +++ b/docs/next/api/infer/index.html @@ -6,14 +6,14 @@ Infer | ArkType - - - + + +
Version: Next

Infer

text

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/next/api/inferdefinition/index.html b/docs/next/api/inferdefinition/index.html index c17fed3d48..ba17697253 100644 --- a/docs/next/api/inferdefinition/index.html +++ b/docs/next/api/inferdefinition/index.html @@ -6,14 +6,14 @@ inferDefinition | ArkType - - - + + +
Version: Next

inferDefinition

text

export type inferDefinition<def, $> = isAny<def> extends true
? never
: def extends Infer<infer t> | InferredThunk<infer t>
? t
: def extends string
? inferString<def, $>
: def extends List
? inferTuple<def, $>
: def extends RegExp
? string
: def extends Dict
? inferRecord<def, $>
: never
- - + + \ No newline at end of file diff --git a/docs/next/api/instanceof/index.html b/docs/next/api/instanceof/index.html index 78accf4be1..f67a657d4f 100644 --- a/docs/next/api/instanceof/index.html +++ b/docs/next/api/instanceof/index.html @@ -6,14 +6,14 @@ instanceOf | ArkType - - - + + +
Version: Next

instanceOf

operator

tuple

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/next/api/intersection/index.html b/docs/next/api/intersection/index.html index e425959ece..23a3586c87 100644 --- a/docs/next/api/intersection/index.html +++ b/docs/next/api/intersection/index.html @@ -6,14 +6,14 @@ intersection | ArkType - - - + + +
Version: Next

intersection

operator

string

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/next/api/jsobjectsscope/index.html b/docs/next/api/jsobjectsscope/index.html index 1d2adee808..1299fe6156 100644 --- a/docs/next/api/jsobjectsscope/index.html +++ b/docs/next/api/jsobjectsscope/index.html @@ -6,14 +6,14 @@ jsObjectsScope | ArkType - - - + + +
Version: Next

jsObjectsScope

text

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/next/api/keyof/index.html b/docs/next/api/keyof/index.html index f809d967b9..bc38f55b69 100644 --- a/docs/next/api/keyof/index.html +++ b/docs/next/api/keyof/index.html @@ -6,14 +6,14 @@ keyOf | ArkType - - - + + +
Version: Next

keyOf

operator

tuple

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/next/api/keywords/index.html b/docs/next/api/keywords/index.html index fbe9211baf..ce795ffb1e 100644 --- a/docs/next/api/keywords/index.html +++ b/docs/next/api/keywords/index.html @@ -6,14 +6,14 @@ Keywords | ArkType - - - + + +
Version: Next

Keywords

jsObjectsScope

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed numeric string
parsedInteger (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed integer string
parsedDate (In: string) => import("../../parse/ast/morph.js").Out<Date>a valid date
semver stringa valid semantic version
json (In: string) => import("../../parse/ast/morph.js").Out<unknown>a JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/next/api/morph/index.html b/docs/next/api/morph/index.html index 5be9e465f5..a250a7181b 100644 --- a/docs/next/api/morph/index.html +++ b/docs/next/api/morph/index.html @@ -6,14 +6,14 @@ morph | ArkType - - - + + +
Version: Next

morph

operator

tuple

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/next/api/narrow/index.html b/docs/next/api/narrow/index.html index 29f35d4b0e..725d985918 100644 --- a/docs/next/api/narrow/index.html +++ b/docs/next/api/narrow/index.html @@ -6,14 +6,14 @@ narrow | ArkType - - - + + +
Version: Next

narrow

operator

tuple

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/next/api/operators/index.html b/docs/next/api/operators/index.html index 3578406f22..02cfa5a99c 100644 --- a/docs/next/api/operators/index.html +++ b/docs/next/api/operators/index.html @@ -6,14 +6,14 @@ Operators | ArkType - - - + + +
Version: Next

Operators

Operating Table

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/next/api/parseconfigtuple/index.html b/docs/next/api/parseconfigtuple/index.html index 280e2c911a..bc6eff3c7e 100644 --- a/docs/next/api/parseconfigtuple/index.html +++ b/docs/next/api/parseconfigtuple/index.html @@ -6,14 +6,14 @@ parseConfigTuple | ArkType - - - + + +
Version: Next

parseConfigTuple

operator

tuple

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/next/api/precompileddefaults/index.html b/docs/next/api/precompileddefaults/index.html index 4994ca3c32..b728ae242c 100644 --- a/docs/next/api/precompileddefaults/index.html +++ b/docs/next/api/precompileddefaults/index.html @@ -6,14 +6,14 @@ PrecompiledDefaults | ArkType - - - + + +
Version: Next

PrecompiledDefaults

text

export type PrecompiledDefaults = {
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
integer: number
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
semver: string
json: (In: string) => Out<unknown>
parsedNumber: (In: string) => Out<number>
parsedInteger: (In: string) => Out<number>
parsedDate: (In: string) => Out<Date>
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
}
- - + + \ No newline at end of file diff --git a/docs/next/api/problem/index.html b/docs/next/api/problem/index.html index 1b2960e891..75cbe33d88 100644 --- a/docs/next/api/problem/index.html +++ b/docs/next/api/problem/index.html @@ -6,14 +6,14 @@ Problem | ArkType - - - + + +
Version: Next

Problem

text

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/next/api/problems/index.html b/docs/next/api/problems/index.html index 3390778f47..5ba77addef 100644 --- a/docs/next/api/problems/index.html +++ b/docs/next/api/problems/index.html @@ -6,14 +6,14 @@ Problems | ArkType - - - + + +
Version: Next

Problems

text

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/next/api/resolvednode/index.html b/docs/next/api/resolvednode/index.html index 7d09f6d576..27268f6a1e 100644 --- a/docs/next/api/resolvednode/index.html +++ b/docs/next/api/resolvednode/index.html @@ -6,14 +6,14 @@ ResolvedNode | ArkType - - - + + +
Version: Next

ResolvedNode

operator

tuple

  • ["node", nodeDefinition]

helper

  • type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/next/api/scope/index.html b/docs/next/api/scope/index.html index 0b406fff0d..01ee899eea 100644 --- a/docs/next/api/scope/index.html +++ b/docs/next/api/scope/index.html @@ -6,14 +6,14 @@ scope | ArkType - - - + + +
Version: Next

scope

text

scope: ScopeParser

hide_table_of_contents: true

Scope

text

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: Cache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/next/api/space/index.html b/docs/next/api/space/index.html index ec178a670c..e9e8880177 100644 --- a/docs/next/api/space/index.html +++ b/docs/next/api/space/index.html @@ -6,14 +6,14 @@ Space | ArkType - - - + + +
Version: Next

Space

text

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/next/api/tskeywordsscope/index.html b/docs/next/api/tskeywordsscope/index.html index 7113464c53..c70cc2038a 100644 --- a/docs/next/api/tskeywordsscope/index.html +++ b/docs/next/api/tskeywordsscope/index.html @@ -6,14 +6,14 @@ tsKeywordsScope | ArkType - - - + + +
Version: Next

tsKeywordsScope

keywords

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/next/api/type/index.html b/docs/next/api/type/index.html index 4b86cc6c16..ef8ae2253f 100644 --- a/docs/next/api/type/index.html +++ b/docs/next/api/type/index.html @@ -6,14 +6,14 @@ type | ArkType - - - + + +
Version: Next

type

text

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true

Type

text

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/next/api/union/index.html b/docs/next/api/union/index.html index a210191a2a..fde493a867 100644 --- a/docs/next/api/union/index.html +++ b/docs/next/api/union/index.html @@ -6,14 +6,14 @@ union | ArkType - - - + + +
Version: Next

union

operator

string

  • "L|R"
  • const union = type("string|number")

tuple

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/next/api/validatebound/index.html b/docs/next/api/validatebound/index.html index 68361a96f9..98da287908 100644 --- a/docs/next/api/validatebound/index.html +++ b/docs/next/api/validatebound/index.html @@ -6,14 +6,14 @@ validateBound | ArkType - - - + + +
Version: Next

validateBound

operator

tableRow

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/next/api/validatedefinition/index.html b/docs/next/api/validatedefinition/index.html index 5568758881..3531257484 100644 --- a/docs/next/api/validatedefinition/index.html +++ b/docs/next/api/validatedefinition/index.html @@ -6,14 +6,14 @@ validateDefinition | ArkType - - - + + +
Version: Next

validateDefinition

text

export type validateDefinition<def, $> = [def] extends [(...args: any[]) => any]
? def
: def extends Terminal
? def
: def extends string
? validateString<def, $>
: def extends TupleExpression
? validateTupleExpression<def, $>
: def extends BadDefinitionType
? writeBadDefinitionTypeMessage<
objectKindOf<def> extends string ? objectKindOf<def> : domainOf<def>
>
: isUnknown<def> extends true
? stringKeyOf<$>
: evaluate<{
[k in keyof def]: validateDefinition<def[k], $>
}>
- - + + \ No newline at end of file diff --git a/docs/next/api/validatedivisor/index.html b/docs/next/api/validatedivisor/index.html index cf7c2b36c3..15f23ad195 100644 --- a/docs/next/api/validatedivisor/index.html +++ b/docs/next/api/validatedivisor/index.html @@ -6,14 +6,14 @@ validateDivisor | ArkType - - - + + +
Version: Next

validateDivisor

operator

string

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/next/api/validationscope/index.html b/docs/next/api/validationscope/index.html index 649384ce6d..4185e12fba 100644 --- a/docs/next/api/validationscope/index.html +++ b/docs/next/api/validationscope/index.html @@ -6,14 +6,14 @@ validationScope | ArkType - - - + + +
Version: Next

validationScope

keywords

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed numeric string
parsedInteger (In: string) => import("../../parse/ast/morph.js").Out<number>a well-formed integer string
parsedDate (In: string) => import("../../parse/ast/morph.js").Out<Date>a valid date
semver stringa valid semantic version
json (In: string) => import("../../parse/ast/morph.js").Out<unknown>a JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/next/api/valueof/index.html b/docs/next/api/valueof/index.html index 8c804c1bb4..b13654d4de 100644 --- a/docs/next/api/valueof/index.html +++ b/docs/next/api/valueof/index.html @@ -6,14 +6,14 @@ valueOf | ArkType - - - + + +
Version: Next

valueOf

operator

tuple

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/next/index.html b/docs/next/index.html index e28a7cba6a..f36f584cf3 100644 --- a/docs/next/index.html +++ b/docs/next/index.html @@ -6,14 +6,14 @@ Intro | ArkType - - - + + +
Version: Next

Getting Started

Install 📦12KB gzipped, 0 dependencies

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript version 4.8 or greater.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!

Your first type

- - + + \ No newline at end of file diff --git a/docs/next/scopes/index.html b/docs/next/scopes/index.html index a0dad42f0c..2b23a5535a 100644 --- a/docs/next/scopes/index.html +++ b/docs/next/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: Next

Scopes

- - + + \ No newline at end of file diff --git a/docs/scopes/index.html b/docs/scopes/index.html index 6f26e5cc19..2a0d22693d 100644 --- a/docs/scopes/index.html +++ b/docs/scopes/index.html @@ -6,14 +6,14 @@ Scopes | ArkType - - - + + +
Version: 1.0.29-alpha

Scopes

- - + + \ No newline at end of file diff --git a/index.html b/index.html index 0e1efa200b..1a5bb63ad8 100644 --- a/index.html +++ b/index.html @@ -6,14 +6,14 @@ ArkType | ArkType - - - + + +

ArkType

TypeScript's 1:1 validator, optimized from editor to runtime

typescript@4.9.5 in VS Code— no extensions or plugins required (how?)
npm install arktype

ArkType is a runtime validation library that can infer TypeScript definitions 1:1 and reuse them as highly-optimized validators for your data.

With each character you type, you'll get immediate feedback from your editor in the form of either a fully-inferred Type or a specific and helpful ParseError.

This result exactly mirrors what you can expect to happen at runtime down to the punctuation of the error message- no plugins required.

Isomorphic

Define types using TS syntax. Infer them 1:1. Use them to validate your data at runtime.

const user = type({
name: "string",
device: {
platform: "'android'|'ios'",
"version?": "number"
}
})


// Hover to infer...
type User = typeof user.infer

Concise

Say more with less

// Hover to infer...
const arkUser = type({
name: /^ark.*$/ as Infer<`ark${string}`>,
birthday: morph("string", (s) => new Date(s)),
"powerLevel?": "1<=number<9000"
})
// Hover to infer...
const zodUser = z.object({
name: z.custom<`zod${string}`>(
(val) => typeof val === "string" && /^zod.*$/.test(val)
),
birthday: z.preprocess(
(arg) => (typeof arg === "string" ? new Date(arg) : undefined),
z.date()
),
powerLevel: z.number().gte(1).lt(9000).optional()
})

Optimized

ArkType is not just a validator— it's a full type system. Operations are deeply computed and optimized by default

// Hover to see internal representation...
export const deepLeftOrRight = union(
{
auto: {
discriminated: "'left'"
}
},
{
auto: {
discriminated: "'right'"
}
}
)
// Hover to see internal representation...
export const numericIntersection = type(
"(1 <= number%2 < 100) & (0 < number%3 <= 99)"
)





Type-safe

String definitions are statically parsed with each character you type and give detailed feedback just like in your editor.

Worried about performance? Don't be. This is how it feels to interact with a scope of 100 cyclic types (you may want to go fullscreen to see the details!)
- - + + \ No newline at end of file diff --git a/try/index.html b/try/index.html index 0b04a3685b..24100c4b44 100644 --- a/try/index.html +++ b/try/index.html @@ -6,14 +6,14 @@ ArkType | ArkType - - - + + +

ArkType

TypeScript's 1:1 validator, optimized from editor to runtime

typescript@4.9.5 in VS Code— no extensions or plugins required (how?)
npm install arktype

ArkType is a runtime validation library that can infer TypeScript definitions 1:1 and reuse them as highly-optimized validators for your data.

With each character you type, you'll get immediate feedback from your editor in the form of either a fully-inferred Type or a specific and helpful ParseError.

This result exactly mirrors what you can expect to happen at runtime down to the punctuation of the error message- no plugins required.

Isomorphic

Define types using TS syntax. Infer them 1:1. Use them to validate your data at runtime.

const user = type({
name: "string",
device: {
platform: "'android'|'ios'",
"version?": "number"
}
})


// Hover to infer...
type User = typeof user.infer

Concise

Say more with less

// Hover to infer...
const arkUser = type({
name: /^ark.*$/ as Infer<`ark${string}`>,
birthday: morph("string", (s) => new Date(s)),
"powerLevel?": "1<=number<9000"
})
// Hover to infer...
const zodUser = z.object({
name: z.custom<`zod${string}`>(
(val) => typeof val === "string" && /^zod.*$/.test(val)
),
birthday: z.preprocess(
(arg) => (typeof arg === "string" ? new Date(arg) : undefined),
z.date()
),
powerLevel: z.number().gte(1).lt(9000).optional()
})

Optimized

ArkType is not just a validator— it's a full type system. Operations are deeply computed and optimized by default

// Hover to see internal representation...
export const deepLeftOrRight = union(
{
auto: {
discriminated: "'left'"
}
},
{
auto: {
discriminated: "'right'"
}
}
)
// Hover to see internal representation...
export const numericIntersection = type(
"(1 <= number%2 < 100) & (0 < number%3 <= 99)"
)





Type-safe

String definitions are statically parsed with each character you type and give detailed feedback just like in your editor.

Worried about performance? Don't be. This is how it feels to interact with a scope of 100 cyclic types (you may want to go fullscreen to see the details!)
- - + + \ No newline at end of file