Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in type libsaml.d.ts #174

Closed
samgauklrna opened this issue Apr 19, 2018 · 1 comment
Closed

Syntax error in type libsaml.d.ts #174

samgauklrna opened this issue Apr 19, 2018 · 1 comment

Comments

@samgauklrna
Copy link

Using

"typescript": "2.7.2",
"samlify": 2.3.7

Results in syntax error when compiling

node_modules/samlify/types/src/libsaml.d.ts(99,24): error TS1005: ';' expected.
node_modules/samlify/types/src/libsaml.d.ts(105,29): error TS1005: ';' expected.

I've cloned and built project and did not end up with the same issues. Has something went wrong while uploading to npm?

The block that has issues in libsaml.d.ts

    createKeySection(use: KeyUse, certString: string | Buffer): {
        KeyDescriptor: ({
            _attr: {
                use: KeyUse;
            };
            ds:KeyInfo?: undefined; <-- ? 
        } | {
            'ds:KeyInfo': ({
                _attr: {
                    'xmlns:ds': string;
                };
                ds:X509Data?: undefined; <-- ?
            } | {
                'ds:X509Data': {
                    'ds:X509Certificate': string;
                }[];
                _attr?: undefined;
            })[];
            _attr?: undefined;
        })[];
@dhruvbhatt22
Copy link

I am using angular CLI and getting the same error as above on the same lines mentioned by samgauklrna

ERROR in node_modules/samlify/types/src/libsaml.d.ts(99,23): error TS1005: ';' expected. node_modules/samlify/types/src/libsaml.d.ts(99,24): error TS1131: Property or signature expected. node_modules/samlify/types/src/libsaml.d.ts(105,28): error TS1005: ';' expected. node_modules/samlify/types/src/libsaml.d.ts(105,29): error TS1131: Property or signature expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants