![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
inferred-types
Advanced tools
A collection of Typescript primitives which help to facilitate advanced type strong opertions with greater ease. This includes:
Functions
Model
- wraps the popular io-ts
codec/type class in a way that ensures that the model's name is seen as a literal type rather than just a string
as it is in io-ts
. This helps TS's inference downstream.Configurator
- provides a configurator which is intended to allow a type strong dictionary to be built up as part of a builder patternFluentConfigurator
- provides a fluent style API which also provides a similar feature set to the base Configurator
.arrayToObjectKind
and arrayToObjectName
takes an array of objects which discriminate on the property kind
/name
and converts it into a strongly typed dictionary.Types
PascalCase
, CamelCase
, DashToSnake
, and KebabCase
are all utility classes which will convert a literal type to a transformed literal type of the appropriate casing.Pluralize
takes a literal type and transforms it into the plural version of the type.All symbols are typed and exported in both CommonJS and ESModule format.
This repo uses pnpm to bring in all deps. Please use that instead of npm, yarn, or whatever your favorite package manager is these days. The main things you will be interested in while working this repo are:
pnpm build
- transpiles the Typescript source to javascript and typings files off of /dist; it uses Rollup to do this.pnpm lint
- linting is part of the build process but sometimes you just want see the lint results without the parts of the build donepnpm build:bundle
- if you have things which are not passing yet lint muster but you need to just test the executable code as-is is building you can do that with this targetContributions are welcome as pull requests. To aid in making this process efficient, please note:
Note: all our coding standards have been hopefully incorporated as eslint rules and therefore stylistically so long as you're saving using these rules along with prettier we should be in good shape for the PR review to just focus on the "real stuff".
FAQs
Functions which provide useful type inference on TS projects
The npm package inferred-types receives a total of 3,020 weekly downloads. As such, inferred-types popularity was classified as popular.
We found that inferred-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.