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

common: support checking custom types #1529

Merged
merged 3 commits into from
Aug 26, 2016

Conversation

stephenplusplus
Copy link
Contributor

@stephenplusplus stephenplusplus commented Aug 25, 2016

Fixes #1467

In use:

if (common.util.isCustomType(image, 'storage/file')) {
  // ...
}

I used the constructor @alias strings as the canonical name for a class.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 25, 2016

var subscription = new Subscription();

it('should match a custom type by constructor names', function() {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@callmehiphop
Copy link
Contributor

LGTM!

}

var walkingModule = unknown;
do {

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling aee15bd on stephenplusplus:spp--1467 into * on GoogleCloudPlatform:master*.

@callmehiphop callmehiphop merged commit 77c83a1 into googleapis:master Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants