mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
542 B
TypeScript
25 lines
542 B
TypeScript
import parseChangelog = require('changelog-parser');
|
|
|
|
const options = {
|
|
filePath: 'path/to/CHANGELOG.md',
|
|
removeMarkdown: false
|
|
};
|
|
|
|
const fn = (obj: object): void => {};
|
|
|
|
parseChangelog({filePath: 'path/to/CHANGELOG.md'}, (error, result) => {
|
|
if (error) {
|
|
throw error;
|
|
}
|
|
|
|
fn(result);
|
|
});
|
|
|
|
parseChangelog(options, (error, result) => {});
|
|
|
|
parseChangelog({filePath: 'path/to/CHANGELOG.md'}, (error) => {});
|
|
|
|
parseChangelog(options).then((result) => {});
|
|
|
|
parseChangelog('path/to/CHANGELOG.md').then((result) => {});
|