import encoder , { EncoderOptions } from './encoder' ; import { interleave } from './interleave' ; import { errorCorrection } from './errorCorrection' ; import { renderModules } from './renderer' ; export const createModuleDefinition = ( input , options ? ) => { const { version , level , data } = encoder ( input , options ) ; const message = interleave ( errorCorrection ( version , level , data ) ) ; return renderModules ( { version , level , data : message } ) ; } ;