Sha256: 143df5cd821c836a209d65c4b9b2983cff7937f3d3d6b9bfa11c15683ed64510
Contents?: true
Size: 734 Bytes
Versions: 4
Compression:
Stored size: 734 Bytes
Contents
// @flow // duplicated from transform-file so we do not have to import anything here type TransformFile = { (filename: string, callback: Function): void, (filename: string, opts: ?Object, callback: Function): void, }; export const transformFile: TransformFile = (function transformFile( filename, opts, callback, ) { if (typeof opts === "function") { callback = opts; } callback(new Error("Transforming files is not supported in browsers"), null); }: Function); export function transformFileSync() { throw new Error("Transforming files is not supported in browsers"); } export function transformFileAsync() { return Promise.reject( new Error("Transforming files is not supported in browsers"), ); }
Version data entries
4 entries across 3 versions & 2 rubygems