mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
412 B
TypeScript
11 lines
412 B
TypeScript
import * as gtin from 'gtin';
|
|
|
|
gtin.isGTIN('12341238'); // $ExpectType boolean
|
|
gtin.validate('12341238'); // $ExpectType boolean
|
|
gtin.minify('0000012341238'); // $ExpectType string
|
|
gtin.getFormat('12341238'); // $ExpectType GtinFormat
|
|
gtin.getRealFormat('1234123412344'); // $ExpectType GtinFormat
|
|
|
|
gtin.upce.compress('1200000789'); // $ExpectType string | null
|
|
gtin.upce.expand('127890'); // $ExpectType string
|