MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / doFlash

Function doFlash

tools/mcdevicetree.js:833–848  ·  view source on GitHub ↗
(state, dts)

Source from the content-addressed store, hash-verified

831}
832
833function doFlash(state, dts) {
834 state.jsCode += `
835import flash from "embedded:storage/flash";
836device.flash = flash;
837`;
838
839 state.tsCode += `
840declare module "embedded:provider/builtin" {
841 import flash from "embedded:storage/flash";
842
843 interface Device {
844 flash: typeof flash
845 }
846}
847`;
848}
849
850function doKeyValue(state, dts) {
851 state.jsCode += `

Callers 2

runMethod · 0.85
beginProgrammingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected