1.0.9 • Published 6 years ago

@iqoption/dictionary-props v1.0.9

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
6 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

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago