UNPKG

@onesy/utils

Version:
17 lines (16 loc) 499 B
interface IGoogleFont { name: string; weights: Array<string | number>; } /** * Example: * Input: * getGoogleFontsURL([ * { name: 'Roboto', weights: [400, 700] }, * { name: 'Source Sans 3', weights: ['italic 200', 400, 700] }, * ]); * Output: * 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Source+Sans+3:ital,wght@0,200;0,700;1,200&display=swap' */ declare const getGoogleFontsURL: (value: Array<IGoogleFont>) => string; export default getGoogleFontsURL;