pixiv.moe
Version:
A pinterest-style layout site, shows illusts on [pixiv.net](http://pixiv.net) order by popularity. Written with React.
20 lines (15 loc) • 356 B
text/typescript
import namespacedTypes from 'namespaced-types';
export interface IAuthActionValues {
SET_AUTH: string;
}
export const types = namespacedTypes('auth', ['SET_AUTH']) as IAuthActionValues;
export interface IAuthAction {
type: string;
payload: any;
}
export function setAuth(data: any) {
return {
type: types.SET_AUTH,
payload: data
};
}