initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
34
github/codeql-action-v1/node_modules/file-url/index.d.ts
generated
vendored
Normal file
34
github/codeql-action-v1/node_modules/file-url/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
declare namespace fileUrl {
|
||||
interface Options {
|
||||
/**
|
||||
Passing `false` will make it not call `path.resolve()` on the path.
|
||||
|
||||
@default true
|
||||
*/
|
||||
readonly resolve?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Convert a file path to a file URL.
|
||||
|
||||
@param filePath - File path to convert.
|
||||
@returns The `filePath` converted to a file URL.
|
||||
|
||||
@example
|
||||
```
|
||||
import fileUrl = require('file-url');
|
||||
|
||||
fileUrl('unicorn.jpg');
|
||||
//=> 'file:///Users/sindresorhus/dev/file-url/unicorn.jpg'
|
||||
|
||||
fileUrl('/Users/pony/pics/unicorn.jpg');
|
||||
//=> 'file:///Users/pony/pics/unicorn.jpg'
|
||||
|
||||
fileUrl('unicorn.jpg', {resolve: false});
|
||||
//=> 'file:///unicorn.jpg'
|
||||
```
|
||||
*/
|
||||
declare function fileUrl(filePath: string, options?: fileUrl.Options): string;
|
||||
|
||||
export = fileUrl;
|
||||
Loading…
Add table
Add a link
Reference in a new issue