├── pages ├── index.mdx ├── docs │ ├── latest.js │ ├── v8.0.0.js │ ├── manual │ │ ├── v8.0.0 │ │ │ ├── api │ │ │ │ ├── belt │ │ │ │ │ └── debug.mdx │ │ │ │ ├── js │ │ │ │ │ ├── result.mdx │ │ │ │ │ ├── typed-array-2.mdx │ │ │ │ │ ├── typed-array_array-buffer.mdx │ │ │ │ │ ├── typed-array.mdx │ │ │ │ │ ├── typed-array-2_array-buffer.mdx │ │ │ │ │ ├── types.mdx │ │ │ │ │ └── obj.mdx │ │ │ │ └── dom │ │ │ │ │ ├── storage.mdx │ │ │ │ │ └── storage2.mdx │ │ │ ├── libraries.mdx │ │ │ ├── browser-support-polyfills.mdx │ │ │ ├── editor-plugins.mdx │ │ │ ├── api.mdx │ │ │ └── reserved-keywords.mdx │ │ ├── latest │ │ │ ├── api │ │ │ │ ├── belt │ │ │ │ │ └── debug.mdx │ │ │ │ ├── js │ │ │ │ │ ├── result.mdx │ │ │ │ │ ├── typed-array-2.mdx │ │ │ │ │ ├── typed-array_array-buffer.mdx │ │ │ │ │ ├── typed-array-2_array-buffer.mdx │ │ │ │ │ ├── typed-array.mdx │ │ │ │ │ ├── obj.mdx │ │ │ │ │ └── types.mdx │ │ │ │ └── dom │ │ │ │ │ ├── storage.mdx │ │ │ │ │ └── storage2.mdx │ │ │ ├── try.mdx │ │ │ ├── warning-numbers.mdx │ │ │ ├── build-configuration-schema.mdx │ │ │ ├── browser-support-polyfills.mdx │ │ │ ├── editor-plugins.mdx │ │ │ └── api.mdx │ │ └── v9.0.0 │ │ │ ├── api │ │ │ ├── belt │ │ │ │ └── debug.mdx │ │ │ ├── js │ │ │ │ ├── result.mdx │ │ │ │ ├── typed-array-2.mdx │ │ │ │ ├── typed-array_array-buffer.mdx │ │ │ │ ├── typed-array-2_array-buffer.mdx │ │ │ │ ├── typed-array.mdx │ │ │ │ ├── obj.mdx │ │ │ │ └── types.mdx │ │ │ └── dom │ │ │ │ ├── storage.mdx │ │ │ │ └── storage2.mdx │ │ │ ├── build-configuration-schema.mdx │ │ │ ├── browser-support-polyfills.mdx │ │ │ ├── editor-plugins.mdx │ │ │ └── api.mdx │ └── reason-compiler │ │ └── latest │ │ └── nodejs-special-variables.mdx ├── blog │ └── [slug].js ├── docs-cn │ └── manual │ │ └── latest │ │ ├── api │ │ ├── belt │ │ │ └── debug.mdx │ │ ├── js │ │ │ ├── result.mdx │ │ │ ├── typed-array-2.mdx │ │ │ ├── typed-array_array-buffer.mdx │ │ │ ├── typed-array-2_array-buffer.mdx │ │ │ ├── typed-array.mdx │ │ │ ├── obj.mdx │ │ │ └── types.mdx │ │ └── dom │ │ │ ├── storage.mdx │ │ │ └── storage2.mdx │ │ ├── try.mdx │ │ ├── build-configuration-schema.mdx │ │ ├── warning-numbers.mdx │ │ ├── editor-plugins.mdx │ │ └── browser-support-polyfills.mdx ├── community │ ├── roadmap.mdx │ └── translations.mdx ├── blog.js ├── packages.js ├── syntax-lookup.mdx ├── try.js ├── _app.js ├── brand.mdx └── _document.js ├── index_data └── .gitkeep ├── public ├── blog │ └── .gitkeep └── static │ ├── hero.jpg │ ├── blog │ ├── grid_0.jpeg │ ├── compiler_release_9_0.jpg │ ├── compiler_release_9_1.jpg │ ├── landing_page_figma.png │ ├── archive │ │ ├── search-mockup.jpg │ │ ├── playground-mockup.jpg │ │ ├── youtube-search-reasonml.jpg │ │ ├── state-of-reasonml-pt1-hero.jpg │ │ ├── reasonml-org-structure-retina.jpg │ │ ├── state-of-reasonml-org-q2-2020.jpg │ │ ├── state-of-reasonml-q1-2020-card.jpg │ │ ├── reasonml-org-color-palette-retina.jpg │ │ └── state-of-reasonml-2020-q2-pt2-articleimg.jpg │ ├── editor_support_article.jpg │ ├── editor_support_preview.jpg │ ├── rescript-launch │ │ ├── ReScript-1.jpg │ │ ├── ReScript-2.jpg │ │ ├── ReScript-3.jpg │ │ └── ReScript-4.jpg │ ├── rescript_assoc_rename_preview.jpg │ └── wizard_typing_on_a_keyboard_in_a_sea_of_lava_flowing_54e33c58-aa14-4f1d-8249-dae636dfc0e9.png │ ├── ic_manual@2x.png │ ├── lp │ ├── illu_left.png │ ├── community-1.jpg │ ├── community-2.jpg │ ├── community-3.jpg │ ├── illu_right.png │ ├── easy-to-unadopt.jpg │ ├── editor-tooling-1.jpg │ ├── fast-build-preview.jpg │ ├── type-better-preview.jpg │ └── interop-example-preview.jpg │ ├── nav-logo@2x.png │ ├── favicon │ ├── favicon.ico │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── apple-touch-icon.png │ ├── android-chrome-192x192.png │ ├── android-chrome-512x512.png │ └── site.webmanifest │ ├── ic_gentype@2x.png │ ├── ic_reanalyze@2x.png │ ├── img │ ├── bstracing.png │ ├── debugger-after.png │ ├── debugger-before.png │ ├── debugger-inspector.png │ └── landing_page_figma.png │ ├── pupilfirst-logo.png │ ├── nav-logo-full@2x.png │ ├── brand │ ├── rescript-logo.png │ ├── rescript-brandmark.png │ └── rescript-logo-white.png │ ├── ic_rescript_react@2x.png │ ├── messenger-logo-64@2x.png │ ├── vitejs_starter_logo.png │ ├── Art-3-rescript-launch.jpg │ ├── illu_index_rescript@2x.png │ ├── vitejs_starter_logo@2x.png │ ├── fonts │ ├── roboto-mono-400.woff2 │ ├── roboto-mono-700.woff2 │ ├── subset-Inter-Bold.woff2 │ ├── subset-Inter-Italic.woff2 │ ├── subset-Inter-Medium.woff2 │ ├── subset-Inter-Regular.woff2 │ └── subset-Inter-SemiBold.woff2 │ ├── nextjs_starter_logo.svg │ ├── ic_sidebar_drawer.svg │ ├── star.svg │ ├── ic_search.svg │ ├── partners │ └── ahrefs.svg │ ├── nodejs_starter_logo.svg │ └── ic_package.svg ├── .nowignore ├── src ├── components │ ├── ApiMarkdown.resi │ ├── Footer.resi │ ├── Text.resi │ ├── ApiIntro.resi │ ├── ApiIntro.res │ ├── Video.resi │ ├── AnsiPre.resi │ ├── Tag.resi │ ├── Navigation.resi │ ├── DocSearch.resi │ ├── VersionSelect.resi │ ├── Image.resi │ ├── Button.resi │ ├── Text.mjs │ ├── Text.res │ ├── Meta.resi │ ├── ApiIntro.mjs │ ├── Tag.res │ ├── CodeExample.resi │ ├── Tag.mjs │ ├── Docson.resi │ ├── WarningTable.res │ ├── VersionSelect.res │ ├── Image.res │ ├── Video.res │ ├── ApiMarkdown.res │ ├── Docson.mjs │ ├── Button.res │ ├── Image.mjs │ ├── VersionSelect.mjs │ ├── Docson.res │ ├── ApiMarkdown.mjs │ └── Video.mjs ├── Design.resi ├── SyntaxLookup.resi ├── common │ ├── App.resi │ ├── ColorTheme.resi │ ├── LzString.mjs │ ├── HighlightJs.resi │ ├── ColorTheme.res │ ├── DateStr.resi │ ├── ColorTheme.mjs │ ├── DocFrontmatter.resi │ ├── DateStr.mjs │ ├── LzString.res │ ├── DateStr.res │ ├── Util.resi │ ├── Url.resi │ ├── LangUtil.res │ ├── XmlHttpRequest.mjs │ ├── WarningFlagDescription.resi │ ├── BlogApi.resi │ ├── LangUtil.mjs │ ├── DocFrontmatter.res │ └── Constants.res ├── Playground.resi ├── bindings │ ├── GitHubSlugger.res │ ├── Fuse.mjs │ ├── GitHubSlugger.mjs │ ├── Webapi.mjs │ ├── HeadlessUI.mjs │ ├── Fuse.res │ ├── Worker.resi │ ├── Worker.res │ ├── Webapi.res │ └── Worker.mjs ├── DocsOverview.resi ├── layouts │ ├── MainLayout.resi │ ├── LandingPageLayout.resi │ ├── ReasonCompilerDocsLayout.resi │ ├── ApiOverviewLayout8_0_0.resi │ ├── CommunityLayout.resi │ ├── GenTypeDocsLayout.resi │ ├── ApiOverviewLayout.resi │ ├── BeltDocsLayout.resi │ ├── DomDocsLayout.resi │ ├── JsDocsLayout.resi │ ├── BeltDocsLayout8_0_0.resi │ ├── DomDocsLayout8_0_0.resi │ ├── JsDocsLayout8_0_0.resi │ ├── ApiLayout.resi │ ├── CommunityLayout.res │ ├── MainLayout.res │ └── GenTypeDocsLayout.res ├── Blog.resi ├── BlogArticle.resi ├── vendor │ └── Json.ml ├── Packages.resi ├── Design.res ├── ffi │ ├── loadScript.js │ └── parse-numeric-range.js └── Design.mjs ├── jsconfig.json ├── .github ├── FUNDING.yml └── workflows │ └── pull-request.yml ├── .babelrc ├── now.json ├── scripts ├── generate_feed.res └── generate_feed.mjs ├── data ├── sidebar_community.json ├── sidebar_gentype_latest.json ├── packages_url_resources.json └── sidebar_react_latest.json ├── postcss.config.js ├── compilers ├── README.md └── package.json ├── styles ├── utils.css ├── _theme.css └── _markdown.css ├── Makefile ├── _blogposts └── archive │ ├── 2017-10-01-bucklescript-release-1-0.mdx │ ├── 2017-10-03-bucklescript-release-1-4-3.mdx │ ├── 2019-03-31-bucklescript-release-6-0.mdx │ ├── 2017-10-05-bucklescript-release-1-5-1.mdx │ ├── 2017-10-06-bucklescript-release-1-5-2.mdx │ ├── 2017-10-04-bucklescript-release-1-5-0.mdx │ ├── 2018-05-23-bucklescript-release-3-1-4.mdx │ ├── 2020-08-03-bucklescript-release-8-2.mdx │ ├── 2019-01-07-bucklescript-release-4-0-17.mdx │ ├── 2017-10-02-bucklescript-release-1-4-2.mdx │ ├── 2019-03-21-bucklescript-release-5-0.mdx │ └── 2017-10-08-bucklescript-release-1-7-4.mdx ├── .gitignore ├── misc_docs └── syntax │ ├── specialvalues_line.mdx │ ├── specialvalues_file.mdx │ ├── operators_mod.mdx │ ├── specialvalues_module.mdx │ ├── operators_float_division.mdx │ ├── operators_string_concatenation.mdx │ ├── operators_integer_subtraction.mdx │ ├── operators_integer_multiplication.mdx │ ├── operators_float_addition.mdx │ ├── operators_float_subtraction.mdx │ ├── operators_float_multiplication.mdx │ ├── specialvalues_loc.mdx │ ├── operators_integer_addition.mdx │ ├── language_function.mdx │ ├── language_let.mdx │ ├── decorator_module_warning.mdx │ ├── decorator_scope.mdx │ ├── operators_integer_division.mdx │ ├── decorator_get.mdx │ ├── decorator_new.mdx │ ├── decorator_module.mdx │ ├── decorator_set.mdx │ ├── extension_debugger.mdx │ ├── language_if_else.mdx │ ├── specialvalues_line_of.mdx │ ├── decorator_variadic.mdx │ ├── decorator_val.mdx │ ├── decorator_ignore.mdx │ ├── decorator_unboxed.mdx │ ├── builtinfunctions_ignore.mdx │ ├── decorator_inline.mdx │ ├── language_string_literal.mdx │ ├── specialvalues_loc_of.mdx │ ├── extension_regular_expression.mdx │ ├── language_module.mdx │ ├── decorator_obj.mdx │ ├── language_string_interpolation.mdx │ ├── decorator_meth.mdx │ ├── decorator_int.mdx │ ├── decorator_module_deprecated.mdx │ ├── extension_identity.mdx │ ├── decorator_unwrap.mdx │ ├── decorator_raises.mdx │ ├── operator_ref_value_assignment.mdx │ ├── specialvalues_pos.mdx │ ├── decorator_dead.mdx │ ├── decorator_string.mdx │ ├── extension_private_let.mdx │ ├── language_char_literal.mdx │ ├── language_uncurried_function.mdx │ ├── decorator_send.mdx │ ├── decorator_does_not_raise.mdx │ ├── extension_raw_expression.mdx │ ├── decorator_live.mdx │ ├── decorator_set_index.mdx │ ├── specialvalues_pos_of.mdx │ ├── decorator_get_index.mdx │ ├── decorator_return.mdx │ ├── decorator_expression_deprecated.mdx │ ├── language_open.mdx │ ├── decorator_send_pipe.mdx │ ├── language_type.mdx │ └── language_switch.mdx ├── plugins └── next-mdx.js ├── bsconfig.json └── LICENSE /pages/index.mdx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index_data/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/blog/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.nowignore: -------------------------------------------------------------------------------- 1 | .next/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /src/components/ApiMarkdown.resi: -------------------------------------------------------------------------------- 1 | let default: Mdx.Components.t 2 | -------------------------------------------------------------------------------- /src/Design.resi: -------------------------------------------------------------------------------- 1 | @react.component 2 | let default: unit => React.element 3 | -------------------------------------------------------------------------------- /src/SyntaxLookup.resi: -------------------------------------------------------------------------------- 1 | @react.component 2 | let make: unit => React.element 3 | -------------------------------------------------------------------------------- /src/common/App.resi: -------------------------------------------------------------------------------- 1 | type props 2 | 3 | let make: props => React.element 4 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "." 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/Playground.resi: -------------------------------------------------------------------------------- 1 | @react.component 2 | let default: unit => React.element 3 | -------------------------------------------------------------------------------- /src/components/Footer.resi: -------------------------------------------------------------------------------- 1 | @react.component 2 | let make: unit => React.element 3 | -------------------------------------------------------------------------------- /src/common/ColorTheme.resi: -------------------------------------------------------------------------------- 1 | type t = [#Reason | #Js] 2 | 3 | let toCN: t => string 4 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: ryyppy 2 | custom: https://rescript-association.org/donate 3 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "next/babel" 4 | ], 5 | "plugins": [ 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /pages/docs/latest.js: -------------------------------------------------------------------------------- 1 | import make from "src/DocsOverview.mjs"; 2 | 3 | export default make; 4 | -------------------------------------------------------------------------------- /pages/docs/v8.0.0.js: -------------------------------------------------------------------------------- 1 | import make from "src/DocsOverview.mjs"; 2 | 3 | export default make; 4 | -------------------------------------------------------------------------------- /src/bindings/GitHubSlugger.res: -------------------------------------------------------------------------------- 1 | @module("github-slugger") external slug: string => string = "slug" 2 | -------------------------------------------------------------------------------- /src/components/Text.resi: -------------------------------------------------------------------------------- 1 | module Link: { 2 | let inline: string 3 | let standalone: string 4 | } 5 | -------------------------------------------------------------------------------- /src/DocsOverview.resi: -------------------------------------------------------------------------------- 1 | @react.component 2 | let default: (~showVersionSelect: bool=?) => React.element 3 | -------------------------------------------------------------------------------- /src/components/ApiIntro.resi: -------------------------------------------------------------------------------- 1 | @react.component 2 | let make: (~children: React.element) => React.element 3 | -------------------------------------------------------------------------------- /src/components/ApiIntro.res: -------------------------------------------------------------------------------- 1 | @react.component 2 | let make = (~children) =>
| {React.string("#")} | {React.string("Description")} |
|---|---|
| {React.string(number)} | {React.string(description)} | 14 |
21 |
22 | We will write a dedicated article explaining how we achieve this incredible
23 | build performance.
24 |
25 | A detailed list of changes is available
26 | [here](https://github.com/BuckleScript/bucklescript/blob/master/Changes.md#4017)
27 |
28 | Another quite important but not client facing change is that we renovated the
29 | internal build system, it will be much easier for contribution later on. We
30 | will update the contribution guide once it gets stable.
31 |
--------------------------------------------------------------------------------
/misc_docs/syntax/decorator_return.mdx:
--------------------------------------------------------------------------------
1 | ---
2 | id: "return-decorator"
3 | keywords: ["return", "decorator"]
4 | name: "@return"
5 | summary: "This is the `@return` decorator."
6 | category: "decorators"
7 | ---
8 |
9 | The `@return` decorator is used to control how `null` and `undefined` values are converted to `option` types in ReScript.
10 |
11 | ### Example
12 |
13 | text inside of Info-Box (Markdown)? */
52 | .infobox > p {
53 | @apply text-14 mt-0;
54 | }
55 |
56 | .infobox > .md-p {
57 | @apply mt-0;
58 | }
59 |
60 | .infobox >p >a {
61 | @apply underline text-current;
62 | }
63 | .infobox >p >a:hover {
64 | @apply no-underline text-current text-gray-70;
65 | }
66 |
--------------------------------------------------------------------------------
/pages/docs/manual/latest/api/js/types.mdx:
--------------------------------------------------------------------------------
1 | # Types
2 |
3 |