import { ExampleDescription } from './example' ; const knownExamples = { } ; export const registerExamples = ( examples ) : void => { examples . forEach ( example => ( knownExamples [ example . name ] = example ) ) ; } ; export const getExamples = ( ) => Object . keys ( knownExamples ) . map ( key => knownExamples [ key ] ) ;