What is the purpose of the declare
keyword?
type Callback = (err: Error | String, data: Array<CalledBackData>) => void;
vs.
declare type Callback = (err: Error | String, data:Array<CalledBackData>) => void;
Cannot find docs that explain the purpose of the declare
keyword in TS.