Skip to content

Commit e9bac2d

Browse files
author
Perki
committed
One more Fix
1 parent 62b7050 commit e9bac2d

File tree

2 files changed

+128
-52
lines changed

2 files changed

+128
-52
lines changed

components/pryv/src/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
declare module 'pryv' {
22
type Timestamp = number;
33
type Identifier = string;
4-
export type Level = 'read' | 'contribute' | 'manage' | 'create-only';
4+
export type PermissionLevel = 'read' | 'contribute' | 'manage' | 'create-only';
55
export type KeyValue = { [key: string]: string | number };
66

77
export type Attachment = {
@@ -46,7 +46,7 @@ declare module 'pryv' {
4646

4747
export type Permission = {
4848
streamId: Identifier;
49-
level: Level;
49+
level: PermissionLevel;
5050
feature?: 'selfRevoke';
5151
setting?: 'forbidden';
5252
};
@@ -671,7 +671,7 @@ declare module 'pryv' {
671671
export type AuthRequestedPermission = {
672672
streamId: Identifier;
673673
defaultName: string;
674-
level: Level;
674+
level: PermissionLevel;
675675
};
676676

677677
export type States =
@@ -697,7 +697,7 @@ declare module 'pryv' {
697697
poll_rate_ms: number;
698698
requestedPermissions: Array<{
699699
streamId: string;
700-
level: Level;
700+
level: PermissionLevel;
701701
defaultName: string;
702702
}>;
703703
requestingAppId: string;
@@ -732,7 +732,7 @@ declare module 'pryv' {
732732
};
733733
};
734734

735-
export const SetupAuth: (
735+
export type SetupAuth = (
736736
settings: AuthSettings,
737737
serviceInfoUrl: string,
738738
serviceCustomizations?: serviceCustomizations,

package-lock.json

Lines changed: 123 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)