Просмотр исходного кода

chore: updates README.md and README-ru.md

e22m4u 1 год назад
Родитель
Сommit
d9712ddf4e
2 измененных файлов с 20 добавлено и 20 удалено
  1. 10 10
      README-ru.md
  2. 10 10
      README.md

+ 10 - 10
README-ru.md

@@ -38,11 +38,11 @@ npm install @e22m4u/js-service
 
 Методы:
 
-- `get(ctor, ...args)` получить существующий или новый экземпляр сервиса
-- `has(ctor)` проверка существования конструктора сервиса в контейнере
-- `add(ctor, ...args)` добавить конструктор сервиса в контейнер
-- `use(ctor, ...args)` добавить конструктор сервиса и создать экземпляр
-- `set(ctor, service)` добавить конструктор сервиса и его экземпляр
+- `get(ctor, ...args)` получить существующий или новый экземпляр
+- `has(ctor)` проверка существования конструктора в контейнере
+- `add(ctor, ...args)` добавить конструктор в контейнер
+- `use(ctor, ...args)` добавить конструктор и создать экземпляр
+- `set(ctor, service)` добавить конструктор и его экземпляр
 
 ### get
 
@@ -107,11 +107,11 @@ console.log(hasService); // true
 
 Методы:
 
-- `getService(ctor, ...args)` получить существующий или новый экземпляр сервиса
-- `hasService(ctor)` проверка существования конструктора сервиса в контейнере
-- `addService(ctor, ...args)` добавить конструктор сервиса в контейнер
-- `useService(ctor, ...args)` добавить конструктор сервиса и создать экземпляр
-- `setService(ctor, service)` добавить конструктор сервиса и его экземпляр
+- `getService(ctor, ...args)` получить существующий или новый экземпляр
+- `hasService(ctor)` проверка существования конструктора в контейнере
+- `addService(ctor, ...args)` добавить конструктор в контейнер
+- `useService(ctor, ...args)` добавить конструктор и создать экземпляр
+- `setService(ctor, service)` добавить конструктор и его экземпляр
 
 Сервисом может являться совершенно любой класс. Однако, если это
 наследник класса `Service`, то такой сервис позволяет инкапсулировать

+ 10 - 10
README.md

@@ -37,11 +37,11 @@ as if we were passing the service container between them.
 
 Methods:
 
-- `get(ctor, ...args)` returns an existing or new service instance
-- `has(ctor)` checks if a service constructor exists in the container
-- `add(ctor, ...args)` adds a service constructor to the container
-- `use(ctor, ...args)` adds a service constructor and creates its instance
-- `set(ctor, service)` adds a service constructor and its instance
+- `get(ctor, ...args)` returns an existing or new instance
+- `has(ctor)` checks if a constructor exists in the container
+- `add(ctor, ...args)` adds a constructor to the container
+- `use(ctor, ...args)` adds a constructor and creates its instance
+- `set(ctor, service)` adds a constructor and its instance
 
 ### get
 
@@ -109,11 +109,11 @@ console.log(hasService); // true
 
 Methods:
 
-- `getService(ctor, ...args)` returns an existing or new service instance
-- `hasService(ctor)` checks if a service constructor exists in the container
-- `addService(ctor, ...args)` adds a service constructor to the container
-- `useService(ctor, ...args)` adds a service constructor and creates its instance
-- `setService(ctor, service)` adds a service constructor and its instance
+- `getService(ctor, ...args)` returns an existing or new instance
+- `hasService(ctor)` checks if a constructor exists in the container
+- `addService(ctor, ...args)` adds a constructor to the container
+- `useService(ctor, ...args)` adds a constructor and creates its instance
+- `setService(ctor, service)` adds a constructor and its instance
 
 A service is just an instance of a class. However, if a service
 inherits the `Service` class, such a service allows encapsulating