Results 51 comments of Anthony G

looks like this is possible at the type level, using the [IsNull](https://github.com/anthonyjoeseph/spectacles-ts/blob/main/src/util/predicates.ts#L61) predicate: ```ts type StrictNullChecksEnabled = IsNull ```

Oh wow that would be great! I think something modelled after [fp-ts](https://github.com/gcanti/fp-ts/blob/master/src/Option.ts#L810) ```ts /** * Sets a value at a particular path * * If a value at the path...

Found a related issues for #1 - https://github.com/cosmos/cosmjs/issues/1273 , https://github.com/cosmos/cosmjs/issues/1097#issuecomment-1069169749

tangentially related - https://github.com/cosmos/cosmjs/issues/837

thanks for this! Could you post the `IGlassState` type, or something equivalent? A typescript playground would be great - [something like this](https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgcwKbwL5wGZQiOAcgGcxUBjGAQ3IBtViBaGYwgKFElkRwFcA7SsAj84VYjjhZc+ItjDNWHcNHhhgZOAF4cAOnVk2HfjFRRsNVHACSAcVrjiAZWqnEbOHAAmVagC53T08qAOIYKGB+ZABuDyCAIwD+XhB4sziMNky2LwoHKCtyETC4MN9UALsHYmdXVCMi-hLTEp0DVAAKMtMAGhR0DsIfakIASlGgA)

I've just released a new version of spectacles (1.0.6) with some type optimizations that should help Also, I noticed that you're using typescript version 4.4.3. Spectacles relies heavily on tail-recursion,...

Thanks for the suggestion! As per the [yarn docs](https://classic.yarnpkg.com/en/docs/dependency-types#toc-peerdependencies) > Having a peer dependency means that your package needs a dependency that is the same exact dependency as the person...

Actually, looks like the Typescript team [has a feature for this (sort of)](https://github.com/microsoft/TypeScript/issues/32166) using [typeVersions](https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#version-selection-with-typesversions). Going to make a PR

@ssirowy Closing if lieu of a repro. If you're able to make one, please feel free to post it and we can re-open the issue Thanks for supporting the library!

Hey @chrisfernandes102 ! sorry for the very late reply. Are you still getting this error locally? I'm not seeing it on my desktop machine. It could just be an issue...