Maxim Khramtsov
Maxim Khramtsov
Yes, it will be good feature. Now TS don't support importing *.vue files (Can't find module error). And hack with suffixing *.vue with ".ts" at compile-time is way what use...
Manually typed functions may has some inaccuracy unlike auto inferred ones. [For example:](https://www.typescriptlang.org/play?strict=true#code/JYWwDg9gTgLgBAKjgQwM5wGIAU4DMoQhwDkuYAtDKsQNwBQdAxhAHarwDycAvJlgHQQwMYK3rM28AN64ANhADuAXx59+uAK4tGIsQwns8CgIyqAPAEE4AUwAeMaywAm6AErXkT1rICeFqFDIPmZaANYsiiwAfFEAFACUPFFwZgBCADRwAMJxdHAoAEYAXHCx-OXIJRaJ3MkZeXAFjCWxxXCpNclZ6XSdePIKlpkZ2XHIBZlN8fRMrIa4CuZWdg7Obh5eLL7+gcFhEQrRcX1pmd1wACK5+eMt5fyVcNVJ7T35TS1tHS-dDYxOLWa2T6F16LzkiiGr2ymSusXGk0YmX+030c3gMAgAFUwGBrFAsmhrOYAMo2eyOFxwdhQYAsADmcVsJRJ8RKOLxUEYRLMJOStTgtn4mI5+MJqGsCRQ6GQLB84nRKFksFJ5NWVJpdMZsWZcFZJQABgASKQkpQAQktBpexqktgtVoVkjgmJJMCg5gAcmrKegWBoQAV8UySp62XBbZ6lNaBULXe6tVK0Cg5TMYD48XAsSxRCxeKYAD5wABMcCLAGYy3AACxVgCs9HTmfcqA0shgABUM8TeAAiYyW829qu94uD4dF3vl8cj6szyd18f0JzWRiyZBQYkGeAb+nsnN6bcu6zsFtt+C8EW4sVE+HKmCxeNQeFQenxd80OAAei-cH787-MdLQnP9p2A2cAN7RdgLRZ1mHACBUGAXQWFUCEFEfCA3SgTJkHvTIr05cVrFRH84C7TNiDMb0Vl9OB-UDYMdVDPpRS5HlIwdc0DSiYg4GAP0IB3VAkPpFhxlkYlMRdbsSE1BliH4WZnQUDxQgo6wnDPdtVFiFh91zcN5PpF54MgJCUJmMiNJIaifTWeiAyDKAQzgMMXjY7kJTMTjBx4viBPooTpVE8SCkkl0IBkyjtM7btFOUwxVOQdTuy0k9z1MXg9IM1hw1imyBTMxDkNzT8GGs2TiGMgLBOE0KJKkqKm2JYhXASo9ktSvF0tbdtS14MxXHsjUEwZdI4n0rMDxYfLTMIczSr0OgyLpXB8WpTEGWi4lkA0TEQGQERuVkXw4BW394QAfQABly2aXn-cDJyAocRzAt7JznZ6-2godEvgekIAgJwNKcLIFpKlC0MGABtbNcwAXWOWJzvyfInzedHCJvCUsZue9eis38gZBnbUEmfbIqi+RtukhRaQcAG4E3PqYBaXUEbyl5sEEYRc34Dh+dYMwns+wDII+kDe2+8WoPHfl+kUWIGg4dQCBAT023XcLrCxtXDrAWJioswyelRC7qbgBRgBXHanBZjKdNiXsADZx3iZmbZXMHYo5+6+l5oQUMF4WWFFgcftHSXINl6W-ul93gMV9CVfyNX8EILXTsa-X+EN43IdNvLzeJ621PJr21N8X2nfZ0pkFugOeYEYOBaFlCzGMlOBjTuAM417OdckvOC5NpbZtLiqSeBh2WodvbpLW-FNwd1nz0t667umwyW75kOO9zCPINe6WpYgqOE6iZnSdBtLYph4wzHhmbkYSPuB6z7Xc9V-PkCN8eKF4hTwYEAA) ```ts const toUpperCase = (x: S): Uppercase => x.toUpperCase() as any; const alrt = (x: S): `${S}!!!`...
@gcanti what you think?
@andrewQwer , could you please provide example of your solution?
@freezy In execute mode you may add "null-loader", after "svg-sprite-loader". It removes runtime data from bundle(url, width, height, ets.), but still produce empty runtime function, and Warnings in console output...
it should be noted that tuples also need to be taken into account AFAIR there is separate ast for tuples
@sukovanej I think better not to wrap user's schema, but wrap query-element into single array if users schema implies this. otherwise in case of error user will get unexpected parse...
with this restriction, we reserve space for helpers that may appear in the future. otherwise, it will be a breaking change every time.
BTW some Yieldable structures can be supported in advance - Option, Either etc and `Option.gen` & `Either.gen` contexts
@gcanti do you have any thoughts on this? it seems there is a request for this schema from the community, so I thought it would make sense to land it...