mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
refactor: apply stricter ts-lint rules
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {ConnectorClient} from '@openstapps/api/lib/connectorClient';
|
||||
import {HttpClient} from '@openstapps/api/lib/httpClient';
|
||||
import {ConnectorClient} from '@openstapps/api/lib/connector-client';
|
||||
import {HttpClient} from '@openstapps/api/lib/http-client';
|
||||
import {
|
||||
SCLicensePlate,
|
||||
SCNamespaces,
|
||||
SCThings,
|
||||
} from '@openstapps/core';
|
||||
import {Connector} from './Connector';
|
||||
import {Connector} from './connector';
|
||||
|
||||
/**
|
||||
* Checks if the input is a valid SCNamespace
|
||||
@@ -27,7 +27,8 @@ import {Connector} from './Connector';
|
||||
* @param input Name of the potential SCNamespace
|
||||
*/
|
||||
export function isValidSCNamespace(input: string): input is SCLicensePlate {
|
||||
return Object.keys(SCNamespaces).indexOf(input) > 0;
|
||||
return Object.keys(SCNamespaces)
|
||||
.indexOf(input) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +39,7 @@ export function isValidSCNamespace(input: string): input is SCLicensePlate {
|
||||
* @param itemIdentifier Identifying representation of the item
|
||||
* @param licensePlate License plate of the school
|
||||
*/
|
||||
export function createUUID(itemIdentifier: any, licensePlate: SCLicensePlate): string {
|
||||
export function createUUID(itemIdentifier: unknown, licensePlate: SCLicensePlate): string {
|
||||
return ConnectorClient.makeUUID(JSON.stringify(itemIdentifier), licensePlate);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user