1.0.9 • Published 7 years ago

@iqoption/dictionary-props v1.0.9

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
7 years ago

Класс для генерации проптайпов переводиков

Реквайрим вот так

const { keys } = require('@iqoption/dictionary-props');

Создаем ключики: если ключ всегда должен быть не пустым - add, если ключ может быть пустой строкой - addOptional.

const fooKey = keys.add('section.foo');
const barKey = keys.add('section.bar');
const optFooKey = keys.addOptional('section.fooOpt');

Пишем в проптайпы

static propTypes = {
  dictionary: keys.types,
};
1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago