Skip to content

Commit

Permalink
chore(ts): switch type to person
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed May 30, 2021
1 parent 335bdaf commit 19089d1
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,32 @@

import type {Plugin} from 'rollup';

/**
* A person, as described in NPM documentation.
*
* @see https://docs.npmjs.com/cli/v7/configuring-npm/package-json#people-fields-author-contributors
*/
export interface Person {
readonly name: string,
readonly email: string | null,
readonly url: string | null,
/**
* Person Name.
*/
readonly name: string;

/**
* Person Email.
*/
readonly email: string | null;

/**
* Person URL.
*/
readonly url: string | null;

/**
* Turns the person into a formatted string
* @returns formatted person info
*/
text: () => string,
text: () => string;
}

export type CommentStyle = 'regular' | 'ignored' | 'slash';
Expand Down Expand Up @@ -69,6 +85,7 @@ export interface Dependency {
readonly url: string,
readonly type: string,
},

readonly homepage: string,

/**
Expand Down

0 comments on commit 19089d1

Please sign in to comment.