sprintf TypeScript utils.
Parse params from a sprintf format.
import { parseParams } from 'sprintf-ts'
let params = parseParams('Hello %1$s, %s, %2$s, %s');
// = [{ name: 'p1', type: ['string'] }, { name: 'p2', type: ['string'] }]
params = parseParams('Hello %(name)s');
// = [{ name: 'p1', type: ['{ name: string }'] }]
type TsParam = {
name: string
type: string[]
}