1.0.9 • Published 8 years ago

@iqoption/dictionary-props v1.0.9

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

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago