A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://sass-lang.com/documentation/js-api/types/PromiseOr below:

Website Navigation


Sass: PromiseOr | JS API

PromiseOr<T, sync extends "sync" | "async">: sync extends "async"
    ? T | Promise<T>
    : T

A utility type for choosing between synchronous and asynchronous return values.

This is used as the return value for plugins like CustomFunction, Importer, and FileImporter so that TypeScript enforces that asynchronous plugins are only passed to compileAsync and compileStringAsync, not compile or compileString.

Type Parameters

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4