Version: 0.0.10.1.00.2.00.3.00.4.01.0.0-01.0.0-11.0.0-21.0.0-31.0.0-41.0.0-51.0.0-61.0.0-7
import * as tsm from 'ts-morph';
export function getFilename({
declaration,
}: {
declaration: tsm.Node;
}): string {
// Remove leading `/` from filepath
return declaration.getSourceFile().getFilePath().replace(/^\//, '');
}