SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function withScriptRuntime

    • Runs fn with the SheetXL global installed, and removes it again however fn ends.

      Type Parameters

      • T

      Parameters

      • fn: () => Promise<T>

      Returns Promise<T>

      For a host that executes script source WITHOUT compiling it to a module (the CLI's -e/-f, which type-strip and import): a compiled macro gets the global from the macro runtime, and this is how every other path keeps the same promise the declarations make. Wrap the LOAD as well as the call — a script may read SheetXL.ISheet.Visibility.Hidden at module top level.