Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 17, 2019
1 parent 86b880e commit d1f0fce
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,32 @@ import {Options as CpFileOptions} from 'cp-file';
declare namespace cpy {
interface SourceFile {
/**
Resolved path to file.
Resolved path to the file.
@example `/tmp/foo.bar`
*/
readonly path: string,
readonly path: string;

/**
Filename.
@example `foo.bar`
*/
readonly name: string,
readonly name: string;

/**
Filename without extension.
@example `foo`
*/
readonly nameWithoutExtension: string,
readonly nameWithoutExtension: string;

/**
File extension.
@example `.bar`
*/
readonly extension: string,
readonly extension: string;
}

interface Options extends Readonly<GlobbyOptions>, CpFileOptions {
Expand Down

0 comments on commit d1f0fce

Please sign in to comment.