UNPKG

@calystral/prettier-plugin-solidity

Version:
19 lines (16 loc) 334 B
const { doc: { builders: { concat } } } = require('prettier/standalone'); const UsingForDeclaration = { print: ({ node, path, print }) => concat([ 'using ', node.libraryName, ' for ', node.typeName ? path.call(print, 'typeName') : '*', ';' ]) }; module.exports = UsingForDeclaration;