It appears you have a well-structured Git repository with various files, including SVG icons and HTML documents. Here's a brief overview:
This commit is contained in:
59
backend/node_modules/read-pkg/index.d.ts
generated
vendored
Normal file
59
backend/node_modules/read-pkg/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
import * as typeFest from 'type-fest';
|
||||
import * as normalize from 'normalize-package-data';
|
||||
|
||||
export interface Options {
|
||||
/**
|
||||
Current working directory.
|
||||
|
||||
@default process.cwd()
|
||||
*/
|
||||
readonly cwd?: string;
|
||||
|
||||
/**
|
||||
[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data.
|
||||
|
||||
@default true
|
||||
*/
|
||||
readonly normalize?: boolean;
|
||||
}
|
||||
|
||||
export interface NormalizeOptions extends Options {
|
||||
readonly normalize?: true;
|
||||
}
|
||||
|
||||
export type NormalizedPackageJson = PackageJson & normalize.Package;
|
||||
export type PackageJson = typeFest.PackageJson;
|
||||
|
||||
/**
|
||||
@returns The parsed JSON.
|
||||
|
||||
@example
|
||||
```
|
||||
import {readPackageAsync} from 'read-pkg';
|
||||
|
||||
console.log(await readPackageAsync());
|
||||
//=> {name: 'read-pkg', …}
|
||||
|
||||
console.log(await readPackageAsync({cwd: 'some-other-directory'});
|
||||
//=> {name: 'unicorn', …}
|
||||
```
|
||||
*/
|
||||
export function readPackageAsync(options?: NormalizeOptions): Promise<NormalizedPackageJson>;
|
||||
export function readPackageAsync(options: Options): Promise<PackageJson>;
|
||||
|
||||
/**
|
||||
@returns The parsed JSON.
|
||||
|
||||
@example
|
||||
```
|
||||
import {readPackageSync} from 'read-pkg';
|
||||
|
||||
console.log(readPackageSync());
|
||||
//=> {name: 'read-pkg', …}
|
||||
|
||||
console.log(readPackageSync({cwd: 'some-other-directory'});
|
||||
//=> {name: 'unicorn', …}
|
||||
```
|
||||
*/
|
||||
export function readPackageSync(options?: NormalizeOptions): NormalizedPackageJson;
|
||||
export function readPackageSync(options: Options): PackageJson;
|
Reference in New Issue
Block a user