flow icon indicating copy to clipboard operation
flow copied to clipboard

lib for flow.js

Open besarthoxhaj opened this issue 10 years ago • 3 comments

After compiling flow to javascript with make js, I tried to look for the lib types of the new generated flow.js itself.

Did I maybe miss them? Is there some way I can generate them with js_of_ocaml? Or something else.

I'm happy to help if someone can point me in the right direction.

Thanks!

besarthoxhaj avatar Oct 19 '16 16:10 besarthoxhaj

What do you mean "lib types"? Do you mean the builtin library definitions in lib/core.js, lib/dom.js, etc?

If so, take a look at the source for Try Flow. The README shows that the lib files are found in static/flowlib and read on page load.

samwgoldman avatar Oct 19 '16 22:10 samwgoldman

Hi @samwgoldman, thanks for the reply.

I mean the definitions for flow itself, these ones:

{
  registerFile: Function,
  setLibs: Function,
  check: Function,
  checkContent: Function,
  jsOfOcamlVersion: '2.8.2',
  flowVersion: '0.33.0',
  typeAtPos: Function
}

besarthoxhaj avatar Oct 20 '16 11:10 besarthoxhaj

Oh, I have no clue. @mroch would know, though.

samwgoldman avatar Oct 21 '16 01:10 samwgoldman