Skip to content

Commit

Permalink
add the stub type
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-leonov committed Mar 8, 2020
1 parent 97d507d commit dfe4cb1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/jest-types/src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ import chalk = require('chalk');
type CoverageProvider = 'babel' | 'v8';

export type Path = string;
export type PathID = string;
// Keeping RPth of the same length as Path for now, to keep diffs to minimum
// will rename it later.
export type RPth = {
// the initial path as it was used before this PR
// replace it with other properties:
// 1. realpath - full path resolved using smth. like _getRealPath()
// 2. filename - just the file name w/o the containing directies
// 3. extname - just the extension (to speed up a bit)
// 4. dirname - just the dir name (to speed up a bit)
readonly path: string
// prob. the real path + the query string
readonly id: PathID,
};

export type Glob = string;

Expand Down

0 comments on commit dfe4cb1

Please sign in to comment.