I am encountering an issue with my TypeScript file:
let constants = {
urls: {
delegates: {
AUTHENTICATION: {
LOGIN: "auth/pub/login", // User Login (POST)
LOGOUT: "auth/pub/logout", // User Logout
PASSWORD_CHANGE: "security/pub/changepassword", // Change user password (POST)
PASSWORD_RESET: "security/pub/resetpassword", // Reset user password (POST)
PASSWORD_FORGOT: "security/pub/forgotpassword/{email}" // Forgot password
},
...
export constants.urls;//Does not compile...
I have encountered the following error messages:
Expected function, variable, class, interface or namespace declaration.
Expression statement is not an assignment or call.
edit: I attempted the following solution:
const urls = constants.urls;
export urls;
However, this resulted in the same error messages...
edit 2: Thanks to the response below and advice from Matt, I found a working solution:
const URLS = constants.urls;
export {URLS};