Files
kiss-flixel/feedback-server/externs/node/fs/StatSyncFn.hx

37 lines
1.6 KiB
Haxe

package node.fs;
typedef StatSyncFn = {
@:overload(function(path:PathLike, ?options:Dynamic):Null<Stats> { })
@:overload(function(path:PathLike, options:Dynamic):Null<BigIntStats> { })
@:overload(function(path:PathLike, ?options:Dynamic):Stats { })
@:overload(function(path:PathLike, options:Dynamic):BigIntStats { })
@:overload(function(path:PathLike, options:Dynamic):ts.AnyOf2<Stats, BigIntStats> { })
@:overload(function(path:PathLike, ?options:StatSyncOptions):Null<ts.AnyOf2<Stats, BigIntStats>> { })
@:selfCall
function call_(path:PathLike, ?options:Any):Stats;
/**
Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
**/
function apply(thisArg:Dynamic, ?argArray:Dynamic):Dynamic;
/**
Calls a method of an object, substituting another object for the current object.
**/
function call(thisArg:Dynamic, argArray:haxe.extern.Rest<Dynamic>):Dynamic;
/**
For a given function, creates a bound function that has the same body as the original function.
The this object of the bound function is associated with the specified object, and has the specified initial parameters.
**/
function bind(thisArg:Dynamic, argArray:haxe.extern.Rest<Dynamic>):Dynamic;
/**
Returns a string representation of a function.
**/
function toString():String;
var prototype : Dynamic;
final length : Float;
var arguments : Dynamic;
var caller : haxe.Constraints.Function;
/**
Returns the name of the function. Function names are read-only and can not be changed.
**/
final name : String;
};