An exported item is anything that is exported from the local module. This includes:
- everything exported out of any
.ts
file, even for internal use - anything exported outside the package via the
index.ts
files
For example:
// this is an exported item
export const DEFAULT_OPTIONS = {
opt1: true,
}
// so is this
export type Identity<T> = (x: T) => T;
// so is this
export interface Options {
opt1: boolean;
}
// so is this
export function normaliseString(input: string): string {
return input.toLowerCase();
}
// so is this
export const normaliseStringArrow: Identity<string> = (x: string) => x.toLowerCase;