Skip to content

Commit

Permalink
Missing things
Browse files Browse the repository at this point in the history
  • Loading branch information
rcebulko committed Apr 29, 2021
1 parent 04c509a commit fdd233f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-system/test-configs/dep-check-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,9 @@ exports.rules = [
filesMatching: '**/*.js',
mustNotDependOn: 'src/core/assert/base.js',
allowlist: [
'src/core/assert/dev.js',
'src/core/assert/user.js',
'src/log.js',
'src/core/assert/dev.js->src/core/assert/base.js',
'src/core/assert/user.js->src/core/assert/base.js',
'src/log.js->src/core/assert/base.js',
],
},

Expand Down
25 changes: 25 additions & 0 deletions src/core/assert/assert.extern.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright 2021 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* @fileoverview Type externs for assertions.
* @externs
*/

/**
* @typedef {function(?, string=, ...*):?|function(?, !Array<*>)}
*/
let AssertionFunction;

0 comments on commit fdd233f

Please sign in to comment.