md-toy-blog
Version:
Very simple Markdown blog: serves your md as html without fancy databases. You will only spend time writing the actual data.
18 lines (15 loc) • 524 B
text/typescript
import { LoadDictElement } from 'di-why/build/src/DiContainer';
type MissingRefValueReplacementCallback = (ref: string) => string;
const loadDictElement: LoadDictElement<MissingRefValueReplacementCallback> = {
factory: function ({ replaceWith, logger }) {
return (ref: string): string => {
logger.log(`Warning - Missing ref: ${ref}` );
return `${replaceWith}`;
};
},
locateDeps: {
replaceWith: 'MTB_MISSING_REF_VALUE_REPLACEMENT',
logger: 'logger',
}
};
export default loadDictElement;