Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@six-socks-studio/sane-shopify-types

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@six-socks-studio/sane-shopify-types

Common typescript typings for @sane-shopify projects

  • 0.20.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Weekly downloads
 
Created
Source

This package is a Typescript typeRoot of typings of both common types throughout the @sane-shopify repo and external packages that otherwise have no types of their own.

Common types are exported in types/index.ts, and external packages are typed in external/package-name/index.d.ts.

This also includes all types from @good-idea/unwind-edges.

Reasoning

Some of the types are not in the main DefintelyTyped repository, while others are written by us. We're using this package to increase velocity of updating types. Getting stuff into the main repo takes a week, which is too slow for us at the current stage.

All of the types here are designed to not add any functionality except the one existing in the packages themselves

Usage

Install this package.

yarn add --dev @sane-shopify/types
import { ShopifyClient } from '@six-socks-studio/sane-shopify-types'

To use the external typings, update your tsconfig.json to include additional type root.

{
  {
  "compilerOptions": {
    "typeRoots": ["node_modules/@sane-shopify/types/external", "node_modules/@types"]
  }
}

Then, in your project:

import { SanityClient } from '@sanity/base'

(Setup adapted from @joincivil/Civil/typescript-typings)

Keywords

FAQs

Package last updated on 30 Mar 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc