jshiki
    Preparing search index...

    Type Alias JshikiAsyncExpression

    JshikiAsyncExpression: (scope?: Record<any, any>) => Promise<any>

    A compiled, executable async expression.

    const expression = jshiki.parseAsync('await foo.bar()')
    await expression({
    foo: { bar: async () => 'baz' },
    }) // => 'baz'

    Type Declaration

      • (scope?: Record<any, any>): Promise<any>
      • Parameters

        • Optionalscope: Record<any, any>

          The scope to use when evaluating the expression. The expression will be limited to accessing the properties of the scope.

        Returns Promise<any>