GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rescript-lang/experimental-rescript-webapi: Experimental successor to rescript-webapi

BranchesTags
Open more actions menu

Latest commit

 

History

734 Commits
734 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
tools/TypeScript-DOM-lib-generator
tools/TypeScript-DOM-lib-generator
 
 
.gitignore
.gitignore
 
 
.prettierrc.mjs
.prettierrc.mjs
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
astro.config.mjs
astro.config.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
playwright.config.mjs
playwright.config.mjs
 
 
rescript.json
rescript.json
 
 

Repository files navigation

NPM Version

experimental-rescript-webapi

Experimental successor to rescript-webapi

Getting started

ReScript 13.0.0-alpha.5 is the tested compiler baseline. Library alpha releases may contain breaking changes. See the project status for the accepted peer range and its testing limits.

Install the library and compiler in your application:

npm install @rescript/webapi@alpha
npm install --save-dev [email protected]

The @alpha command targets the published alpha dist-tag. The planned 1.0.0-alpha.1 candidate is not published yet; see project status for the current tag and note that candidate installation is verified from its packed tarball.

Add a source directory and the package dependency to rescript.json:

{
  "name": "webapi-consumer",
  "sources": [{ "dir": "src" }],
  "dependencies": ["@rescript/webapi"]
}

In src/Main.res:

let location = WebAPI.DOM.window->WebAPI.Window.location
let href = location.href
location->WebAPI.Location.reload

Compile the consumer with:

npx rescript build

The namespace is flat under WebAPI; internal implementation modules are not public API.

Documentation

More information can be found on https://rescript-lang.github.io/experimental-rescript-webapi/. See the alpha release checklist and migration notes for known limitations and breaking changes.

About

Experimental successor to rescript-webapi

rescript-lang.github.io/experimental-rescript-webapi/

Resources

Readme
MIT license
Activity
Custom properties

Stars

41 stars

Watchers

6 watching

Forks

11 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.