chore: migrate to typescript
This commit is contained in:
parent
9d9553b075
commit
c300730686
|
@ -1,8 +0,0 @@
|
|||
import * as types from './actionsTypes';
|
||||
|
||||
export function deepLinkingOpen(params) {
|
||||
return {
|
||||
type: types.DEEP_LINKING.OPEN,
|
||||
params
|
||||
};
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
import { Action } from 'redux';
|
||||
|
||||
import { DEEP_LINKING } from './actionsTypes';
|
||||
|
||||
interface IParams {
|
||||
path: string;
|
||||
rid: string;
|
||||
messageId: string;
|
||||
host: string;
|
||||
isCall: boolean;
|
||||
fullURL: string;
|
||||
type: string;
|
||||
token: string;
|
||||
}
|
||||
|
||||
interface IDeepLinkingOpen extends Action {
|
||||
params: Partial<IParams>;
|
||||
}
|
||||
|
||||
export function deepLinkingOpen(params: Partial<IParams>): IDeepLinkingOpen {
|
||||
return {
|
||||
type: DEEP_LINKING.OPEN,
|
||||
params
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue