@map-colonies/types

1.3.3 • Public • Published

@map-colonies/types

this package provides common Map-Colonies types


Installation

$ npm install @map-colonies/types

Usage

import { EPSGDATA, EpsgCode } from '@map-colonies/types';

// SAMPLE CODE FOR CREATING PARTIAL TYPE BASED ON EPSGCODE 
type EpsgPartial = Extract<EpsgCode, '2000' | '2001'>;
const o: EpsgPartial = '2000';
...
...
...

const code:EpsgCode = '2001';
const exportRequestParams: CreateExportRequestParams = {
  artifactCRS: code; // or EPSGDATA['2001'].code
  ..
  ..
};


...

Readme

Keywords

none

Package Sidebar

Install

npm i @map-colonies/types

Weekly Downloads

178

Version

1.3.3

License

ISC

Unpacked Size

8.49 MB

Total Files

31

Last publish

Collaborators

  • netanelc
  • mapcolonies
  • syncush
  • asaf.masa
  • schnitz
  • konchashlomicl
  • shimoncohen
  • alebinson
  • tropface